summaryrefslogtreecommitdiffstats
path: root/src/software/openlmi/software/core/Identity.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/software/openlmi/software/core/Identity.py')
-rw-r--r--src/software/openlmi/software/core/Identity.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/software/openlmi/software/core/Identity.py b/src/software/openlmi/software/core/Identity.py
index eda0ab9..9208dcb 100644
--- a/src/software/openlmi/software/core/Identity.py
+++ b/src/software/openlmi/software/core/Identity.py
@@ -170,10 +170,10 @@ def object_path2nevra(op, with_epoch='NOT_ZERO'):
if (not "InstanceID" in op or not op['InstanceID']):
raise pywbem.CIMError(pywbem.CIM_ERR_INVALID_PARAMETER, "Wrong keys.")
instid = op['InstanceID']
- if not instid.lower().startswith("lmi:softwareidentity:"):
+ if not instid.lower().startswith("lmi:lmi_softwareidentity:"):
raise pywbem.CIMError(pywbem.CIM_ERR_INVALID_PARAMETER,
- "InstanceID must start with LMI:SoftwareIdentity: prefix.")
- instid = instid[len("LMI:SoftwareIdentity:"):]
+ "InstanceID must start with LMI:LMI_SoftwareIdentity: prefix.")
+ instid = instid[len("LMI:LMI_SoftwareIdentity:"):]
match = util.RE_NEVRA_OPT_EPOCH.match(instid)
if not match:
raise pywbem.CIMError(pywbem.CIM_ERR_INVALID_PARAMETER,
@@ -241,7 +241,7 @@ def pkg2model(pkg, keys_only=True, model=None):
if not keys_only:
model = pywbem.CIMInstance("LMI_SoftwareIdentity", path=model)
nevra = pkg if isinstance(pkg, basestring) else pkg.nevra
- model['InstanceID'] = 'LMI:SoftwareIdentity:'+nevra
+ model['InstanceID'] = 'LMI:LMI_SoftwareIdentity:'+nevra
if not keys_only:
model.path['InstanceID'] = model['InstanceID'] #pylint: disable=E1103
model['Caption'] = pkg.summary