Fix formatting of XML for an inactive guest
Fix formatting of XML for an inactive guest

If the virDomainDefPtr object has an 'id' of -1, then forcably
set the VIR_DOMAIN_XML_INACTIVE flag to ensure generated XML
does not include any cruft from the previously running guest
such as console PTY path, or VNC port.

* src/conf/domain_conf.c: Set VIR_DOMAIN_XML_INACTIVE if
  def->id is -1. Replace checks for def->id == -1 with
  check against flags & VIR_DOMAIN_XML_INACTIVE.

fabianfreyer/libvirt,dumbbell/libvirt,trainstack/libvirt,rmarwaha/libvirt,rbu/libvirt,jardasgit/libvirt,taget/libvirt,iam-TJ/libvirt,danwent/libvirt-ovs,jeckersb/libvirt,jfehlig/libvirt,jardasgit/libvirt,foomango/libvirt,eskultety/libvirt,cbosdo/libvirt,olafhering/libvirt,jardasgit/libvirt,agx/libvirt,nertpinx/libvirt,rbu/libvirt,agx/libvirt,rmarwaha/libvirt,elmarco/libvirt,warewolf/libvirt,VenkatDatta/libvirt,zippy2/libvirt,zippy2/libvirt,bjzhang/libvirt,rmarwaha/libvirt1,amery/libvirt-vserver,warewolf/libvirt,soulxu/libvirt-xuhj,shugaoye/libvirt,datto/libvirt,trainstack/libvirt,nertpinx/libvirt,crobinso/libvirt,rmarwaha/libvirt,datto/libvirt,rlaager/libvirt,crobinso/libvirt,emaste/libvirt,siboulet/libvirt-openvz,trainstack/libvirt,siboulet/libvirt-openvz,andreabolognani/libvirt,jfehlig/libvirt,agx/libvirt,taget/libvirt,jfehlig/libvirt,iam-TJ/libvirt,rmarwaha/libvirt1,jfehlig/libvirt,amery/libvirt-vserver,zhlcindy/libvirt-1.1.4-maintain,novel/fbsd-libvirt,foomango/libvirt,taget/libvirt,andreabolognani/libvirt,warewolf/libvirt,taget/libvirt,wiedi/libvirt,datto/libvirt,trainstack/libvirt,iam-TJ/libvirt,jeckersb/libvirt,olafhering/libvirt,zhlcindy/libvirt-1.1.4-maintain,olafhering/libvirt,wiedi/libvirt,cbosdo/libvirt,rbu/libvirt,leilihh/libvirt,rmarwaha/libvirt1,wiedi/libvirt,crobinso/libvirt,jeckersb/libvirt,taget/libvirt,soulxu/libvirt-xuhj,kantai/libvirt-vfork,elmarco/libvirt,soulxu/libvirt-xuhj,rmarwaha/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,datto/libvirt,nertpinx/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,usc-isi/libvirt,andreabolognani/libvirt,cbosdo/libvirt,rmarwaha/libvirt1,rmarwaha/libvirt1,rlaager/libvirt,elmarco/libvirt,bjzhang/libvirt,cbosdo/libvirt,novel/fbsd-libvirt,VenkatDatta/libvirt,rbu/libvirt,fabianfreyer/libvirt,shugaoye/libvirt,crobinso/libvirt,fabianfreyer/libvirt,dumbbell/libvirt,bjzhang/libvirt,eskultety/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,dumbbell/libvirt,usc-isi/libvirt,trainstack/libvirt,nertpinx/libvirt,zippy2/libvirt,novel/fbsd-libvirt,siboulet/libvirt-openvz,bjzhang/libvirt,wiedi/libvirt,shugaoye/libvirt,nertpinx/libvirt,leilihh/libvirt,warewolf/libvirt,amery/libvirt-vserver,dumbbell/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,shugaoye/libvirt,dumbbell/libvirt,kantai/libvirt-vfork,agx/libvirt,emaste/libvirt,siboulet/libvirt-openvz,novel/fbsd-libvirt,novel/fbsd-libvirt,iam-TJ/libvirt,zhlcindy/libvirt-1.1.4-maintain,elmarco/libvirt,soulxu/libvirt-xuhj,eskultety/libvirt,warewolf/libvirt,dumbbell/libvirt,emaste/libvirt,danwent/libvirt-ovs,amery/libvirt-vserver,jeckersb/libvirt,elmarco/libvirt,shugaoye/libvirt,kantai/libvirt-vfork,emaste/libvirt,rmarwaha/libvirt,zippy2/libvirt,amery/libvirt-vserver,iam-TJ/libvirt,libvirt/libvirt,libvirt/libvirt,rlaager/libvirt,datto/libvirt,novel/fbsd-libvirt,agx/libvirt,libvirt/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,jeckersb/libvirt,novel/fbsd-libvirt,foomango/libvirt,jeckersb/libvirt,wiedi/libvirt,siboulet/libvirt-openvz,olafhering/libvirt,usc-isi/libvirt,rmarwaha/libvirt,rmarwaha/libvirt1,kantai/libvirt-vfork,VenkatDatta/libvirt,bjzhang/libvirt,eskultety/libvirt,danwent/libvirt-ovs,fabianfreyer/libvirt,leilihh/libvirt,zhlcindy/libvirt-1.1.4-maintain,jardasgit/libvirt,novel/fbsd-libvirt,usc-isi/libvirt,usc-isi/libvirt,kantai/libvirt-vfork,soulxu/libvirt-xuhj,andreabolognani/libvirt,VenkatDatta/libvirt,emaste/libvirt,jeckersb/libvirt,rbu/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,wiedi/libvirt,rlaager/libvirt,zhlcindy/libvirt-1.1.4-maintain,eskultety/libvirt,foomango/libvirt,danwent/libvirt-ovs,warewolf/libvirt,trainstack/libvirt,danwent/libvirt-ovs,leilihh/libvirt,libvirt/libvirt,leilihh/libvirt,iam-TJ/libvirt,emaste/libvirt,trainstack/libvirt,novel/fbsd-libvirt,iam-TJ/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,cbosdo/libvirt,leilihh/libvirt,emaste/libvirt,rlaager/libvirt,foomango/libvirt,wiedi/libvirt,warewolf/libvirt