[Libvirt-cim] [PATCH] Returning 0 domains is not an error

Dan Smith danms at us.ibm.com
Thu Apr 3 16:16:30 UTC 2008


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1207239285 25200
# Node ID 589af2d7c4466eea7e75765222835db46772f1ac
# Parent  1e1c2cd2ef0bff684df37d5c94d7b66b6189295c
Returning 0 domains is not an error

Signed-off-by: Dan Smith <danms at us.ibm.com>

diff -r 1e1c2cd2ef0b -r 589af2d7c446 src/Virt_ComputerSystem.c
--- a/src/Virt_ComputerSystem.c	Fri Mar 28 13:34:34 2008 -0700
+++ b/src/Virt_ComputerSystem.c	Thu Apr 03 09:14:45 2008 -0700
@@ -400,7 +400,7 @@ CMPIStatus enum_domains(const CMPIBroker
                 goto out;
 
         count = get_domain_list(conn, &list);
-        if (count <= 0) {
+        if (count < 0) {
                 cu_statusf(broker, &s,
                            CMPI_RC_ERR_FAILED,
                            "Failed to get domain list");




More information about the Libvirt-cim mailing list