summaryrefslogtreecommitdiffstats
path: root/src/software/openlmi
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-04-18 22:05:19 +0200
committerMichal Minar <miminar@redhat.com>2013-04-22 19:03:09 +0200
commite916644d46adf08f49a5bcb1158e4e11120b61cb (patch)
treedbc87863e2cc3ebf06a5d1456c545410a0dcc3df /src/software/openlmi
parentcb3913a5177f998acb503691fb1908f82c7f890b (diff)
downloadopenlmi-providers-e916644d46adf08f49a5bcb1158e4e11120b61cb.tar.gz
openlmi-providers-e916644d46adf08f49a5bcb1158e4e11120b61cb.tar.xz
openlmi-providers-e916644d46adf08f49a5bcb1158e4e11120b61cb.zip
fixed enumeration of repository associations
Diffstat (limited to 'src/software/openlmi')
-rw-r--r--src/software/openlmi/software/LMI_ResourceForSoftwareIdentity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/software/openlmi/software/LMI_ResourceForSoftwareIdentity.py b/src/software/openlmi/software/LMI_ResourceForSoftwareIdentity.py
index 42ef7dc..7afa264 100644
--- a/src/software/openlmi/software/LMI_ResourceForSoftwareIdentity.py
+++ b/src/software/openlmi/software/LMI_ResourceForSoftwareIdentity.py
@@ -182,10 +182,10 @@ class LMI_ResourceForSoftwareIdentity(CIMProvider2):
for r in ydb.get_repository_list('enabled'))
for pkg in pl:
try:
- repo = repos[pkg.repo]
+ repo = repos[pkg.repoid]
except KeyError:
cmpi_logging.logger.error('unknown or disabled repository'
- ' "%s" for package "%s"' % (pkg, pkg.repo))
+ ' "%s" for package "%s"', pkg, pkg.repoid)
model["AvailableSAP"] = IdentityResource.repo2model(
repo, model=sap_model)
model["ManagedElement"] = Identity.pkg2model(