summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFiona Ebner <f.ebner@proxmox.com>2025-08-01 13:44:45 +0200
committerThomas Lamprecht <t.lamprecht@proxmox.com>2025-08-01 14:59:37 +0200
commit37c2156ce8b26d6fb5e6e173b660841eb64a83cd (patch)
tree93f3d190f765ab10cf08096e774136c90f409f90
parent384a6c561cecfc2f7f8985b1a9b10d5a74cf5789 (diff)
api: sdn: ipams: status: ensure that guest ID is returned as an integer
This is a breaking API change intended for PVE 9. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> Link: https://lore.proxmox.com/20250801114455.85603-1-f.ebner@proxmox.com
-rw-r--r--src/PVE/API2/Network/SDN/Ipams.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/PVE/API2/Network/SDN/Ipams.pm b/src/PVE/API2/Network/SDN/Ipams.pm
index 89e05ee..9955817 100644
--- a/src/PVE/API2/Network/SDN/Ipams.pm
+++ b/src/PVE/API2/Network/SDN/Ipams.pm
@@ -364,6 +364,8 @@ __PACKAGE__->register_method({
$entry->{ip} = $ip;
$entry->{vnet} = $vnet;
+ $entry->{vmid} = int($entry->{vmid}) if defined($entry->{vmid});
+
push @$result, $entry;
}
}