From 184955dc651f1062819db736ace10125710a93f3 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 17 Sep 2014 15:51:47 +0200 Subject: [PATCH] fix bug #542: return VMID as integer --- PVE/API2/Qemu.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 985a9f8c..a0fcd28a 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -243,7 +243,7 @@ __PACKAGE__->register_method({ next if !$rpcenv->check($authuser, "/vms/$vmid", [ 'VM.Audit' ], 1); my $data = $vmstatus->{$vmid}; - $data->{vmid} = $vmid; + $data->{vmid} = int($vmid); push @$res, $data; }