summaryrefslogtreecommitdiffstats
path: root/src/software/openlmi/software/LMI_ResourceForSoftwareIdentity.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/software/openlmi/software/LMI_ResourceForSoftwareIdentity.py')
-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(