> On February 5, 2016 at 9:50 AM Dietmar Maurer <diet...@proxmox.com> wrote:
> 
> 
> > -       my $status = $stat->{status} || 'unknown';
> > +       my $status = $stat->{qmpstatus} || 'unknown';
> 
> What if the VM is running, but qmp does not work for some reason?

vmstatus() ends with:

|    foreach my $vmid (keys %$list) {
|       next if $opt_vmid && ($vmid ne $opt_vmid);
|       $res->{$vmid}->{qmpstatus} = $res->{$vmid}->{status} if 
!$res->{$vmid}->{qmpstatus};

so it falls back to putting the regular non-qmp status into the qmpstatus field.

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to