[Libvirt-cim] [PATCH] Retrun object paths for newly created filter associations

Chip Vincent cvincent at linux.vnet.ibm.com
Thu Aug 4 15:23:51 UTC 2011


# HG changeset patch
# User Chip Vincent <cvincent at us.ibm.com>
# Date 1312471352 14400
# Node ID 43d8048faffd40edd88ec339b7e615ff48a70b6a
# Parent  5dc300d4dfd7b9741a6086e4e5b8da632bcdcd2d
Retrun object paths for newly created filter associations.

Fix to return the resulting new association object path at the end
CreateInstance for Nested and AppliedFilterList. This is simply passing
back the object path that was passed to the provider if there are no
failures during the creation process.

Signed-off-by: Chip Vincent <cvincent at us.ibm.com>

diff --git a/src/Virt_AppliedFilterList.c b/src/Virt_AppliedFilterList.c
--- a/src/Virt_AppliedFilterList.c
+++ b/src/Virt_AppliedFilterList.c
@@ -508,6 +508,7 @@
                 goto out;
         }
 
+        CMReturnObjectPath(results, reference);
         CU_DEBUG("CreateInstance complete");
 
  out:
diff --git a/src/Virt_NestedFilterList.c b/src/Virt_NestedFilterList.c
--- a/src/Virt_NestedFilterList.c
+++ b/src/Virt_NestedFilterList.c
@@ -386,6 +386,7 @@
                 goto out;
         }
 
+        CMReturnObjectPath(results, reference);
         CU_DEBUG("CreateInstance completed");
 
  out:




More information about the Libvirt-cim mailing list