diff options
author | Michal Minar <miminar@redhat.com> | 2014-06-18 12:32:30 +0200 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2014-06-20 14:00:17 +0200 |
commit | 2f2de126dd6f21ee552fa7dd06a10269e162e71b (patch) | |
tree | a753b2ac3760bcdfef3638c69ff6a325a2c77e1f | |
parent | 2b968faef61f3506b44e27d5e92da5b5ec4a6003 (diff) | |
download | openlmi-providers-2f2de126dd6f21ee552fa7dd06a10269e162e71b.tar.gz openlmi-providers-2f2de126dd6f21ee552fa7dd06a10269e162e71b.tar.xz openlmi-providers-2f2de126dd6f21ee552fa7dd06a10269e162e71b.zip |
indications: fixed succeeded static filter
Succeeded static filter had wrong constant hardcoded for successful
job state.
-rw-r--r-- | mof/70_LMI_SoftwareIndicationFilters.mof | 4 | ||||
-rw-r--r-- | src/python/lmi/providers/JobManager.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mof/70_LMI_SoftwareIndicationFilters.mof b/mof/70_LMI_SoftwareIndicationFilters.mof index e47d0e9..9028cc9 100644 --- a/mof/70_LMI_SoftwareIndicationFilters.mof +++ b/mof/70_LMI_SoftwareIndicationFilters.mof @@ -49,7 +49,7 @@ instance of CIM_IndicationFilter { QueryLanguage = "CIM:CQL"; Query = "SELECT * FROM LMI_SoftwareInstModification WHERE " "SourceInstance ISA LMI_SoftwareInstallationJob AND " - "SourceInstance.CIM_ConcreteJob::JobState = 17"; + "SourceInstance.CIM_ConcreteJob::JobState = 7"; /* This is not supported by sfcb: * " = CIM_ConcreteJob.JobState#'Completed'" */ SourceNamespace = "root/cimv2"; @@ -127,7 +127,7 @@ instance of CIM_IndicationFilter { QueryLanguage = "CIM:CQL"; Query = "SELECT * FROM LMI_SoftwareInstModification WHERE " "SourceInstance ISA LMI_SoftwareVerificationJob AND " - "SourceInstance.CIM_ConcreteJob::JobState = 17"; + "SourceInstance.CIM_ConcreteJob::JobState = 7"; /* This is not supported by sfcb: * " = CIM_ConcreteJob.JobState#'Completed'" */ SourceNamespace = "root/cimv2"; diff --git a/src/python/lmi/providers/JobManager.py b/src/python/lmi/providers/JobManager.py index 602a4b0..4a1927b 100644 --- a/src/python/lmi/providers/JobManager.py +++ b/src/python/lmi/providers/JobManager.py @@ -688,7 +688,7 @@ class JobManager(object): IND_JOB_SUCCEEDED: { "Query" : "SELECT * FROM LMI_%(prefix)sInstModification WHERE " "SourceInstance ISA %(classname)s AND " - "SourceInstance.CIM_ConcreteJob::JobState = 17", + "SourceInstance.CIM_ConcreteJob::JobState = 7", "Description": "Modification of Job State for a " "Concrete Job to 'Complete'.", }, |