Re: [PATCH virt-manager 1/2] virtManager: read the reason for the domain state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cole Robinson <crobinso@xxxxxxxxxx> writes:

>> -    def _update_status(self, status):
>> +    def _update_status(self, info):
>>          """
>>          Internal helper to change cached status to 'status' and signal
>>          clients if we actually changed state
>>          """
>> -        status = self._normalize_status(status)
>> +        status = self._normalize_status(info[0])
>>  
>>          if status == self.lastStatus:
>>              return
>>  
>>          oldstatus = self.lastStatus
>>          self.lastStatus = status
>> +        self.lastStatusReason = info[3]
>> 
>
> Huh? virDomainGetInfo returns the status reason? Or am I misreading things?
>
> According to libvirt.h, info[3] should be the number of CPUs allocated to the VM.

ops, I misread the documentation, I will send a v2 soon.

Giuseppe

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux