Fix initial VM state

This commit is contained in:
Daniel P. Berrange 2008-08-01 14:19:06 +00:00
parent 66f9bb5b95
commit 0dee7feb74
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Fri Aug 1 15:15:00 BST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/domain_conf.c: Ensure new VM state is initialized to
be SHUTOFF, rather than NOSTATE.
Fri Aug 1 15:51:04 CEST 2008 Jim Meyering <meyering@redhat.com>
* virsh.c: more const-correctness fixes

View File

@ -429,6 +429,7 @@ virDomainObjPtr virDomainAssignDef(virConnectPtr conn,
return NULL;
}
domain->state = VIR_DOMAIN_SHUTOFF;
domain->def = def;
domain->next = *doms;