
# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1208536954 25200 # Node ID 55f2e355bcd318ec51f673beac6bc1d963c14960 # Parent 1904e4f08af21f99af698e42da236cf39407c5e2 (3) Enable localhost migration. Updates: -Use one if statement instead of two. -Fix subject Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com> diff -r 1904e4f08af2 -r 55f2e355bcd3 src/Virt_VSMigrationService.c --- a/src/Virt_VSMigrationService.c Thu Apr 17 13:37:29 2008 -0700 +++ b/src/Virt_VSMigrationService.c Fri Apr 18 09:42:34 2008 -0700 @@ -76,6 +76,7 @@ virConnectPtr conn; char *ref_cn; char *ref_ns; + char *host; uint16_t type; char uuid[33]; }; @@ -1045,7 +1046,8 @@ goto out; } - if (domain_exists(job->conn, job->domain)) { + if ((!STREQ(job->host, "localhost")) && + (domain_exists(job->conn, job->domain))) { CU_DEBUG("Remote domain `%s' exists", job->domain); cu_statusf(_BROKER, &s, CMPI_RC_ERR_FAILED, @@ -1131,6 +1133,7 @@ free(job->domain); free(job->ref_cn); free(job->ref_ns); + free(job->host); free(job); return NULL; @@ -1238,6 +1241,7 @@ job->domain = strdup(domain); job->ref_cn = strdup(CLASSNAME(ref)); job->ref_ns = strdup(NAMESPACE(ref)); + job->host = strdup(host); uuid_generate(uuid); uuid_unparse(uuid, job->uuid);
participants (1)
-
Kaitlin Rupert