[libvirt] [PATCH] esx: Make sure dumpxml outputs proper ID for active domains

Eric Blake eblake at redhat.com
Fri Aug 20 20:45:39 UTC 2010


On 08/20/2010 01:07 PM, Matthias Bolte wrote:
> ---
>  src/esx/esx_driver.c |   13 +++++++++++--
>  1 files changed, 11 insertions(+), 2 deletions(-)
> 
> diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c

ACK.

> @@ -2693,6 +2698,10 @@ esxDomainDumpXML(virDomainPtr domain, int flags)
>                               priv->primary->productVersion);
>  
>      if (def != NULL) {
> +        if (powerState != esxVI_VirtualMachinePowerState_PoweredOff) {
> +            def->id = id;
> +        }
> +
>          xml = virDomainDefFormat(def, flags);
>      }
>  

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100820/1816d591/attachment-0001.sig>


More information about the libvir-list mailing list