summaryrefslogtreecommitdiffstats
path: root/src/software-dbus/LMI_MemberOfSoftwareCollectionProvider.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/software-dbus/LMI_MemberOfSoftwareCollectionProvider.c')
-rw-r--r--src/software-dbus/LMI_MemberOfSoftwareCollectionProvider.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/software-dbus/LMI_MemberOfSoftwareCollectionProvider.c b/src/software-dbus/LMI_MemberOfSoftwareCollectionProvider.c
index ae36daa..1d4bb45 100644
--- a/src/software-dbus/LMI_MemberOfSoftwareCollectionProvider.c
+++ b/src/software-dbus/LMI_MemberOfSoftwareCollectionProvider.c
@@ -20,7 +20,7 @@
#include <konkret/konkret.h>
#include "LMI_MemberOfSoftwareCollection.h"
-#include "LMI_Software.h"
+#include "sw-utils.h"
static const CMPIBroker* _cb;
@@ -144,9 +144,7 @@ static CMPIStatus LMI_MemberOfSoftwareCollectionGetInstance(
CMReturn(CMPI_RC_ERR_NOT_FOUND);
}
- if (create_sw_package_from_elem_name(get_str_property_from_op(w.Member.value,
- "InstanceID") + strlen(ORGID ":" ORGID "_" SW_IDENTITY_CLASS_NAME ":"),
- &sw_pkg) != 0) {
+ if (get_sw_pkg_from_sw_identity_op(w.Member.value, &sw_pkg) != 0) {
CMReturn(CMPI_RC_ERR_NOT_FOUND);
}