we need it for resourcestore

Signed-off-by: Alexandre Derumier <[email protected]>
---
 bin/pvestatd |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/pvestatd b/bin/pvestatd
index 4565f7b..2aa7c5a 100755
--- a/bin/pvestatd
+++ b/bin/pvestatd
@@ -228,7 +228,7 @@ sub update_qemu_status {
        my $d = $vmstatus->{$vmid};
        my $data;
        my $status = $d->{qmpstatus} || $d->{status} || 'stopped';
-       my $template = 0;
+       my $template = $d->{template} ? $d->{template} : "0";
        if ($d->{pid}) { # running
            $data = "$d->{uptime}:$d->{name}:$status:$template:" .
                "$ctime:$d->{cpus}:$d->{cpu}:" .
-- 
1.7.10.4

_______________________________________________
pve-devel mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to