summaryrefslogtreecommitdiffstats
path: root/src/software/openlmi/software/LMI_OwningSoftwareJobElement.py
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-05-10 15:52:04 +0200
committerMichal Minar <miminar@redhat.com>2013-07-03 13:05:15 +0200
commit6e8736fd571767a74c334a6a112a337917519cb7 (patch)
treed83057df0d2b084313656b30118e0d7fad22fe9a /src/software/openlmi/software/LMI_OwningSoftwareJobElement.py
parentd5ac71ea513deffe78fb48e4f29ef69102f74cdb (diff)
downloadopenlmi-providers-6e8736fd571767a74c334a6a112a337917519cb7.tar.gz
openlmi-providers-6e8736fd571767a74c334a6a112a337917519cb7.tar.xz
openlmi-providers-6e8736fd571767a74c334a6a112a337917519cb7.zip
added another LMI_SoftwareVerificationJob
There are now two asynchronous jobs: LMI_SoftwareInstallationJob LMI_SoftwareVerificationJob Previous LMI_SoftwareInstallationJob module made generic to handle both jobs and possibly more. Also added new static filters for LMI_SoftwareVerificationJob.
Diffstat (limited to 'src/software/openlmi/software/LMI_OwningSoftwareJobElement.py')
-rw-r--r--src/software/openlmi/software/LMI_OwningSoftwareJobElement.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/software/openlmi/software/LMI_OwningSoftwareJobElement.py b/src/software/openlmi/software/LMI_OwningSoftwareJobElement.py
index 8768c0e..5f15ebe 100644
--- a/src/software/openlmi/software/LMI_OwningSoftwareJobElement.py
+++ b/src/software/openlmi/software/LMI_OwningSoftwareJobElement.py
@@ -26,7 +26,7 @@ from pywbem.cim_provider2 import CIMProvider2
from openlmi.common import cmpi_logging
from openlmi.software.core import InstallationService
-from openlmi.software.core import InstallationJob
+from openlmi.software.core import Job
from openlmi.software.yumdb import YumDB
class LMI_OwningSoftwareJobElement(CIMProvider2):
@@ -69,8 +69,8 @@ class LMI_OwningSoftwareJobElement(CIMProvider2):
"""
InstallationService.check_path_property(env, model, "OwningElement")
model['OwningElement'] = InstallationService.get_path()
- job = InstallationJob.object_path2job(model['OwnedElement'])
- model['OwnedElement'] = InstallationJob.job2model(job)
+ job = Job.object_path2job(model['OwnedElement'])
+ model['OwnedElement'] = Job.job2model(job)
return model
@cmpi_logging.trace_method
@@ -98,7 +98,7 @@ class LMI_OwningSoftwareJobElement(CIMProvider2):
model.path.update({'OwningElement': None, 'OwnedElement': None})
model['OwningElement'] = InstallationService.get_path()
for job in YumDB.get_instance().get_job_list():
- model['OwnedElement'] = InstallationJob.job2model(job)
+ model['OwnedElement'] = Job.job2model(job)
yield model
@cmpi_logging.trace_method
@@ -218,6 +218,6 @@ class LMI_OwningSoftwareJobElement(CIMProvider2):
super='LMI_SoftwareInstallationService') or \
ch.is_subclass(object_name.namespace,
sub=object_name.classname,
- super='LMI_SoftwareInstallationJob'):
+ super='LMI_SoftwareJob'):
return self.simple_refs(env, object_name, model,
result_class_name, role, result_role, keys_only)