summaryrefslogtreecommitdiffstats
path: root/src/software/openlmi/software/LMI_AffectedSoftwareJobElement.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/software/openlmi/software/LMI_AffectedSoftwareJobElement.py')
-rw-r--r--src/software/openlmi/software/LMI_AffectedSoftwareJobElement.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/software/openlmi/software/LMI_AffectedSoftwareJobElement.py b/src/software/openlmi/software/LMI_AffectedSoftwareJobElement.py
index 33c0522..e02fc7a 100644
--- a/src/software/openlmi/software/LMI_AffectedSoftwareJobElement.py
+++ b/src/software/openlmi/software/LMI_AffectedSoftwareJobElement.py
@@ -26,7 +26,7 @@ from pywbem.cim_provider2 import CIMProvider2
from openlmi.common import cmpi_logging
from openlmi.software.core import AffectedSoftwareJobElement
-from openlmi.software.core import InstallationJob
+from openlmi.software.core import Job
from openlmi.software.yumdb import YumDB
class LMI_AffectedSoftwareJobElement(CIMProvider2):
@@ -68,7 +68,7 @@ class LMI_AffectedSoftwareJobElement(CIMProvider2):
CIM_ERR_FAILED (some other unspecified error occurred)
"""
(job, affected) = AffectedSoftwareJobElement.check_path(env, model.path)
- model['AffectingElement'] = InstallationJob.job2model(job)
+ model['AffectingElement'] = Job.job2model(job)
ch = env.get_cimom_handle()
@@ -90,6 +90,11 @@ class LMI_AffectedSoftwareJobElement(CIMProvider2):
AffectedSoftwareJobElement.fill_model_system_collection(
model, keys_only=False)
+ elif ch.is_subclass(affected.namespace, sub=affected.classname,
+ super='LMI_SoftwareIdentityFileCheck'):
+ AffectedSoftwareJobElement.fill_model_failed_check(
+ model, affected)
+
else:
cmpi_logging.logger.error("Unhandled classname: %s",
affected.classname)