diff options
author | Michal Minar <miminar@redhat.com> | 2013-11-02 13:07:56 +0100 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2013-11-04 10:58:12 +0100 |
commit | 8a39563a406a7a683b34725e64470a804ffa55bf (patch) | |
tree | c737ada334c94f6abffbff9246dd961a63ad98e9 /src | |
parent | 06eea83409b4356306f85c4ecb32d7376b62d086 (diff) | |
download | openlmi-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.py | 4 |
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( |