summaryrefslogtreecommitdiffstats
path: root/src/software/lmi/software/core/Identity.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/software/lmi/software/core/Identity.py')
-rw-r--r--src/software/lmi/software/core/Identity.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/software/lmi/software/core/Identity.py b/src/software/lmi/software/core/Identity.py
index 2df43a9..7f16f93 100644
--- a/src/software/lmi/software/core/Identity.py
+++ b/src/software/lmi/software/core/Identity.py
@@ -236,8 +236,7 @@ def pkg2model(pkg, keys_only=True, model=None):
if isinstance(pkg, basestring) and not keys_only:
raise ValueError("can not create instance out of nevra")
if model is None:
- model = pywbem.CIMInstanceName("LMI_SoftwareIdentity",
- namespace="root/cimv2")
+ model = util.new_instance_name("LMI_SoftwareIdentity")
if not keys_only:
model = pywbem.CIMInstance("LMI_SoftwareIdentity", path=model)
nevra = pkg if isinstance(pkg, basestring) else pkg.nevra