From 774354e3efaa294f10dcdec51824b1f8416b463a Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Fri, 11 Jul 2008 19:31:26 +0000 Subject: [PATCH] Set initial domain state to SHUTOFF --- ChangeLog | 5 +++++ src/domain_conf.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index b9ca93291a..8e332df7a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Jul 11 20:28:59 BST 2008 Daniel P. Berrange + + * src/domain_conf.c: Set state to SHUTOFF when loading domain + config + Fri Jul 11 18:58:59 BST 2008 Daniel P. Berrange * src/network_conf.c, src/domain_conf.c: Use full path when diff --git a/src/domain_conf.c b/src/domain_conf.c index e04debea37..82c0ee6aa2 100644 --- a/src/domain_conf.c +++ b/src/domain_conf.c @@ -2814,6 +2814,7 @@ virDomainObjPtr virDomainLoadConfig(virConnectPtr conn, if (!(dom = virDomainAssignDef(conn, doms, def))) goto error; + dom->state = VIR_DOMAIN_SHUTOFF; dom->configFile = configFile; dom->autostartLink = autostartLink; dom->autostart = autostart;