summaryrefslogtreecommitdiffstats
path: root/src/software/openlmi/software/cimom_entry.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/cimom_entry.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/cimom_entry.py')
-rw-r--r--src/software/openlmi/software/cimom_entry.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/software/openlmi/software/cimom_entry.py b/src/software/openlmi/software/cimom_entry.py
index 4dd0d40..7d39a21 100644
--- a/src/software/openlmi/software/cimom_entry.py
+++ b/src/software/openlmi/software/cimom_entry.py
@@ -28,7 +28,7 @@ from multiprocessing import Queue
from openlmi.common import cmpi_logging
from openlmi.common import JobManager
from openlmi.common.IndicationManager import IndicationManager
-from openlmi.software.core import InstallationJob
+from openlmi.software.core import Job
from openlmi.software.LMI_SoftwareIdentity import LMI_SoftwareIdentity
from openlmi.software.LMI_SystemSoftwareCollection import \
LMI_SystemSoftwareCollection
@@ -55,8 +55,7 @@ from openlmi.software.LMI_HostedSoftwareInstallationService import \
LMI_HostedSoftwareInstallationService
from openlmi.software.LMI_SoftwareInstallationServiceAffectsElement import \
LMI_SoftwareInstallationServiceAffectsElement
-from openlmi.software.LMI_SoftwareInstallationJob import \
- LMI_SoftwareInstallationJob
+from openlmi.software.LMI_SoftwareJob import LMI_SoftwareJob
from openlmi.software.LMI_SoftwareMethodResult import \
LMI_SoftwareMethodResult
from openlmi.software.LMI_AffectedSoftwareJobElement import \
@@ -80,8 +79,7 @@ def get_providers(env):
# jobmanager does not understand CIM models, give it a way to transform
# job to CIMIndication instance
- jobmanager.JOB_TO_MODEL = lambda job: \
- InstallationJob.job2model(job, keys_only=False)
+ jobmanager.JOB_TO_MODEL = lambda job: Job.job2model(job, keys_only=False)
providers = {
"LMI_SoftwareIdentity" : LMI_SoftwareIdentity(env),
@@ -104,9 +102,11 @@ def get_providers(env):
LMI_HostedSoftwareInstallationService(env),
"LMI_SoftwareInstallationServiceAffectsElement" : \
LMI_SoftwareInstallationServiceAffectsElement(env),
- "LMI_SoftwareInstallationJob" : LMI_SoftwareInstallationJob(env),
- "LMI_SoftwareInstCreation" : LMI_SoftwareInstallationJob(env),
- "LMI_SoftwareInstModification" : LMI_SoftwareInstallationJob(env),
+ "LMI_SoftwareJob" : LMI_SoftwareJob(env),
+ "LMI_SoftwareInstallationJob" : LMI_SoftwareJob(env),
+ "LMI_SoftwareVerificationJob" : LMI_SoftwareJob(env),
+ "LMI_SoftwareInstCreation" : LMI_SoftwareJob(env),
+ "LMI_SoftwareInstModification" : LMI_SoftwareJob(env),
"LMI_SoftwareMethodResult" : LMI_SoftwareMethodResult(env),
"LMI_AffectedSoftwareJobElement" : LMI_AffectedSoftwareJobElement(env),
"LMI_AssociatedSoftwareJobMethodResult" : \
@@ -121,6 +121,7 @@ def get_providers(env):
im = IndicationManager.get_instance(
env, "Software", "root/cimv2", queue=Queue())
JobManager.register_filters("LMI_SoftwareInstallationJob", im)
+ JobManager.register_filters("LMI_SoftwareVerificationJob", im)
return providers