diff options
author | Michal Minar <miminar@redhat.com> | 2012-10-03 19:14:42 +0200 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2012-10-03 19:14:42 +0200 |
commit | 35411e597042f1a88679a6f1a8fe84f9b660aede (patch) | |
tree | 6f7011abad5b44a92ca0a0194fdc43fc4f8205f2 /src/yum/providers/LMI_YumInstalledPackage.py | |
parent | 3c719d73efc1902edfc79d0d6de6b14670addd26 (diff) | |
download | openlmi-providers-35411e597042f1a88679a6f1a8fe84f9b660aede.tar.gz openlmi-providers-35411e597042f1a88679a6f1a8fe84f9b660aede.tar.xz openlmi-providers-35411e597042f1a88679a6f1a8fe84f9b660aede.zip |
working associations
added LMI_YumPackageFile as association between LMI_YumPackage
and LMI_FileCheck
using overrides in mof
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 ( |