diff options
Diffstat (limited to 'src/yum/providers/LMI_YumInstalledPackage.py')
-rw-r--r-- | src/yum/providers/LMI_YumInstalledPackage.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/yum/providers/LMI_YumInstalledPackage.py b/src/yum/providers/LMI_YumInstalledPackage.py index 37a3afe..cf956aa 100644 --- a/src/yum/providers/LMI_YumInstalledPackage.py +++ b/src/yum/providers/LMI_YumInstalledPackage.py @@ -31,9 +31,9 @@ from util.common import * def get_computer_system_op(): return pywbem.CIMInstanceName( - classname='Linux_ComputerSystem', + classname='CIM_ComputerSystem', keybindings={ - "CreationClassName": "Linux_ComputerSystem" + "CreationClassName": "CIM_ComputerSystem" , "Name" : socket.gethostname() }, namespace="root/cimv2") @@ -81,7 +81,7 @@ class LMI_YumInstalledPackage(CIMProvider2): raise pywbem.CIMError(pywbem.CIM_ERR_NOT_FOUND, "Unknown \"System\"") with YumDB.getInstance(env): - pkg = object_path2pkg(env, model['Software']) + pkg = YumPackage.object_path2pkg(env, model['Software']) model['Software'] = pkg2model(pkg, env, True) return model @@ -202,7 +202,7 @@ class LMI_YumInstalledPackage(CIMProvider2): "Unknown \"System\"") with YumDB.getInstance(env) as yb: - pkg = object_path2pkg(env, instance_name["Software"]) + pkg = YumPackage.object_path2pkg(env, instance_name["Software"]) logger.log_info('removing package "%s"' % pkg.nevra) yb.remove(pkg) yb.buildTransaction() @@ -277,7 +277,7 @@ class LMI_YumInstalledPackage(CIMProvider2): # of enum_instances, just leave the code below unaltered. if ch.is_subclass(object_name.namespace, sub=object_name.classname, - super='LMI_ComputerSystem') or \ + super='CIM_ComputerSystem') or \ ch.is_subclass(object_name.namespace, sub=object_name.classname, super='LMI_YumPackage'): @@ -386,7 +386,7 @@ class LMI_YumInstalledPackage(CIMProvider2): "Unknown \"System\"") with YumDB.getInstance(env) as yb: - orig = object_path2pkg(env, object_name['Software']) + orig = YumPackage.object_path2pkg(env, object_name['Software']) evr_str = [] for name, param in ( |