summaryrefslogtreecommitdiffstats
path: root/src/software/openlmi/software/core/InstallationJob.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/software/openlmi/software/core/InstallationJob.py')
-rw-r--r--src/software/openlmi/software/core/InstallationJob.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/software/openlmi/software/core/InstallationJob.py b/src/software/openlmi/software/core/InstallationJob.py
index 2ac1f10..7b06be2 100644
--- a/src/software/openlmi/software/core/InstallationJob.py
+++ b/src/software/openlmi/software/core/InstallationJob.py
@@ -481,7 +481,7 @@ def job2model(job, keys_only=True, model=None):
path=model)
jobid = job.jobid if isinstance(job, jobs.YumAsyncJob) else job
- model['InstanceID'] = 'LMI:SoftwareInstallationJob:%d' % jobid
+ model['InstanceID'] = 'LMI:LMI_SoftwareInstallationJob:%d' % jobid
if isinstance(model, pywbem.CIMInstance):
model.path['InstanceID'] = model['InstanceID'] #pylint: disable=E1103
if not keys_only:
@@ -500,11 +500,11 @@ def object_path2job(op):
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:softwareinstallationjob:"):
+ if not instid.lower().startswith("lmi:lmi_softwareinstallationjob:"):
raise pywbem.CIMError(pywbem.CIM_ERR_INVALID_PARAMETER,
- "InstanceID must start with LMI:SoftwareInstallationJob: prefix.")
+ "InstanceID must start with LMI:LMI_SoftwareInstallationJob: prefix.")
try:
- instid = int(instid[len("LMI:SoftwareInstallationJob:"):])
+ instid = int(instid[len("LMI:LMI_SoftwareInstallationJob:"):])
except ValueError:
raise pywbem.CIMError(pywbem.CIM_ERR_INVALID_PARAMETER,
'Invalid InstanceID "%s"' % instid)