summaryrefslogtreecommitdiffstats
path: root/src/software
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-11-29 15:55:01 +0100
committerMichal Minar <miminar@redhat.com>2013-11-30 16:00:53 +0100
commit6fe40639889fbe748231058d82edd8f6b3eb2714 (patch)
tree40c3b37c369aa030824cb3f30946f923141dd7dd /src/software
parent620c9551df23e3636fdd83eab5ae1e7b44b96c0f (diff)
downloadopenlmi-providers-6fe40639889fbe748231058d82edd8f6b3eb2714.tar.gz
openlmi-providers-6fe40639889fbe748231058d82edd8f6b3eb2714.tar.xz
openlmi-providers-6fe40639889fbe748231058d82edd8f6b3eb2714.zip
software: another fix to associator generation
This fix repairs previous patch trying to speed up generating of software identities associated with software collection through LMI_MemberOfSoftwareCollection. Resolves: rhbz#1035328
Diffstat (limited to 'src/software')
-rw-r--r--src/software/lmi/software/LMI_MemberOfSoftwareCollection.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/software/lmi/software/LMI_MemberOfSoftwareCollection.py b/src/software/lmi/software/LMI_MemberOfSoftwareCollection.py
index 64cb001..fc22974 100644
--- a/src/software/lmi/software/LMI_MemberOfSoftwareCollection.py
+++ b/src/software/lmi/software/LMI_MemberOfSoftwareCollection.py
@@ -215,7 +215,8 @@ class LMI_MemberOfSoftwareCollection(CIMProvider2):
resultRole,
propertyList):
"""
- Yields available identities associated to ``ComputerSystem`` instance.
+ Yields available identities associated to
+ ``LMI_SystemSoftwareCollection`` instance.
This overrides method of superclass for a very good reason. Original
method calls ``GetInstance()`` on every single object path returned by
@@ -230,9 +231,9 @@ class LMI_MemberOfSoftwareCollection(CIMProvider2):
and (not resultRole or resultRole.lower() == "member")
and ch.is_subclass(ns,
sub=objectName.classname,
- super="CIM_ComputerSystem")):
+ super="LMI_SystemSoftwareCollection")):
try:
- ComputerSystem.check_path(env, objectName, 'ObjectName')
+ SystemCollection.check_path(env, objectName, 'ObjectName')
except pywbem.CIMError as e:
if e.args[0] != pywbem.CIM_ERR_NOT_FOUND:
raise