summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-11-02 13:07:56 +0100
committerMichal Minar <miminar@redhat.com>2013-11-04 10:58:12 +0100
commit8a39563a406a7a683b34725e64470a804ffa55bf (patch)
treec737ada334c94f6abffbff9246dd961a63ad98e9 /src
parent06eea83409b4356306f85c4ecb32d7376b62d086 (diff)
downloadopenlmi-providers-8a39563a406a7a683b34725e64470a804ffa55bf.tar.gz
openlmi-providers-8a39563a406a7a683b34725e64470a804ffa55bf.tar.xz
openlmi-providers-8a39563a406a7a683b34725e64470a804ffa55bf.zip
software: fixed referents generator
LMI_InstalledSoftwareIdentity generated wrong object paths of SoftwareIdentities. System does not belong into its keys.
Diffstat (limited to 'src')
-rw-r--r--src/software/lmi/software/LMI_InstalledSoftwareIdentity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/software/lmi/software/LMI_InstalledSoftwareIdentity.py b/src/software/lmi/software/LMI_InstalledSoftwareIdentity.py
index 7219609..85df2c7 100644
--- a/src/software/lmi/software/LMI_InstalledSoftwareIdentity.py
+++ b/src/software/lmi/software/LMI_InstalledSoftwareIdentity.py
@@ -44,8 +44,8 @@ def generate_system_referents(env, object_name, model, _keys_only):
"""
ComputerSystem.check_path(env, object_name, "object_name")
- pkg_model = util.new_instance_name('LMI_SoftwareIdentity',
- System=ComputerSystem.get_path(env))
+ model["System"] = ComputerSystem.get_path(env)
+ pkg_model = util.new_instance_name('LMI_SoftwareIdentity')
with YumDB.get_instance() as ydb:
for pkg_info in ydb.get_package_list('installed', sort=True):
model["InstalledSoftware"] = Identity.pkg2model(