Skip to contentSkip to conversation

Fix error getting status from libvirt-qpid plugin

PATCH New Zane Bitter 2 participants 2 messages Aug 1, 2011 – Aug 2, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix error getting status from libvirt-qpid plugin

---
 server/libvirt-qpid.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
server/libvirt-qpid.cpp +2 -2
index 593f47c..4a3dc17 100644
@@ -170,7 +170,7 @@ do_lq_request(struct lq_info *info, const char *vm_name,
 		i = 0;
 	}
 
-	if (!strcasecmp(action, "status")) {
+	if (!strcasecmp(action, "state")) {
 		result.code = i;
 		goto out;
 	}
@@ -246,7 +246,7 @@ lq_status(const char *vm_name, void *priv)
 	VALIDATE(priv);
 	printf("[libvirt-qpid] STATUS operation on %s\n", vm_name);
 
-	return do_lq_request((lq_info *)priv, vm_name, "destroy");
+	return do_lq_request((lq_info *)priv, vm_name, "state");
 }
 
 
#1 lore raw

PATCH 1/1 Fix error getting status from libvirt-qpid plugin

Quoted 19 lines · Zane Bitter
---
 server/libvirt-qpid.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
server/libvirt-qpid.cpp +1 -1
index 593f47c..4a3dc17 100644
@@ -170,7 +170,7 @@ do_lq_request(struct lq_info *info, const char *vm_name,
 		i = 0;
 	}
 
-	if (!strcasecmp(action, "status")) {
+	if (!strcasecmp(action, "state")) {
 		result.code = i;
 		goto out;
 	}

server/libvirt-qpid.cpp lq_status(const char *vm_name, void *priv) · line 250

Quoted 6 lines
server/libvirt-qpid.cpp +1 -1
@@ -246,7 +246,7 @@ lq_status(const char *vm_name, void *priv)
 	VALIDATE(priv);
 	printf("[libvirt-qpid] STATUS operation on %s\n", vm_name);
 
-	return do_lq_request((lq_info *)priv, vm_name, "destroy");
+	return do_lq_request((lq_info *)priv, vm_name, "state");
 }

Merged

Signature · 1 line
Lon Hohberger - Red Hat, Inc.