summaryrefslogtreecommitdiffstats
path: root/src/software/lmi/software/core/AffectedSoftwareJobElement.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/software/lmi/software/core/AffectedSoftwareJobElement.py')
-rw-r--r--src/software/lmi/software/core/AffectedSoftwareJobElement.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/software/lmi/software/core/AffectedSoftwareJobElement.py b/src/software/lmi/software/core/AffectedSoftwareJobElement.py
index 90014eb..b245166 100644
--- a/src/software/lmi/software/core/AffectedSoftwareJobElement.py
+++ b/src/software/lmi/software/core/AffectedSoftwareJobElement.py
@@ -97,7 +97,7 @@ def check_path(env, op):
SystemCollection.check_path(env, affected, "AffectedElement")
affected = SystemCollection.get_path()
elif ch.is_subclass(affected.namespace, sub=affected.classname,
- super='Linux_ComputerSystem'):
+ super=util.Configuration.get_instance().system_class_name):
ComputerSystem.check_path(env, affected, "AffectedElement")
affected = ComputerSystem.get_path()
elif ch.is_subclass(affected.namespace, sub=affected.classname,
@@ -239,8 +239,7 @@ def generate_models_from_job(job, keys_only=True, model=None):
if not isinstance(job, jobs.YumJob):
raise TypeError("pkg must be an instance of PackageInfo or nevra")
if model is None:
- model = pywbem.CIMInstanceName("LMI_AffectedSoftwareJobElement",
- namespace="root/cimv2")
+ model = util.new_instance_name("LMI_AffectedSoftwareJobElement")
if not keys_only:
model = pywbem.CIMInstance("LMI_AffectedSoftwareJobElement",
path=model)