diff options
Diffstat (limited to 'src/software/lmi/software/core/Job.py')
-rw-r--r-- | src/software/lmi/software/core/Job.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/software/lmi/software/core/Job.py b/src/software/lmi/software/core/Job.py index 3154fb7..05a684b 100644 --- a/src/software/lmi/software/core/Job.py +++ b/src/software/lmi/software/core/Job.py @@ -672,8 +672,8 @@ def object_path2job(op): "Missing InstanceID key property.") instid = op['InstanceID'] match = util.RE_INSTANCE_ID.match(instid) - if not match or match.group('clsname').lower() not in { - c.lower() for c in JOB_CLASS_NAMES}: + if not match or match.group('clsname').lower() not in set([ + c.lower() for c in JOB_CLASS_NAMES]): raise pywbem.CIMError(pywbem.CIM_ERR_INVALID_PARAMETER, "InstanceID must start with one of {%s} prefixes." " And end with positive integer." % ( @@ -709,8 +709,8 @@ def modify_instance(instance): "deleteoncompletion" : "delete_on_completion", "timebeforeremoval" : "time_before_removal" } - metadata_props = {"name"} - reschedule_props = {"delete_on_completion", "time_before_removal"} + metadata_props = set(["name"]) + reschedule_props = set(["delete_on_completion", "time_before_removal"]) for name, prop in instance.properties.items(): if prop is None: LOG().warn('property "%s" is None', name) |