# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1208536702 25200
# Node ID 75b0999bf8632d854768190b0f4735176c1874b4
# Parent 1904e4f08af21f99af698e42da236cf39407c5e2
#2 Enable localhost migration.
Updates:
-Use one if statement instead of two.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 1904e4f08af2 -r 75b0999bf863 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:38:22 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);
Show replies by date
Kaitlin Rupert wrote:
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1208536702 25200
# Node ID 75b0999bf8632d854768190b0f4735176c1874b4
# Parent 1904e4f08af21f99af698e42da236cf39407c5e2
#2 Enable localhost migration.
Sorry - I should have made this (2) instead of #2.
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin(a)linux.vnet.ibm.com