diff options
Diffstat (limited to 'src/software/lmi/software/LMI_ResourceForSoftwareIdentity.py')
-rw-r--r-- | src/software/lmi/software/LMI_ResourceForSoftwareIdentity.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/software/lmi/software/LMI_ResourceForSoftwareIdentity.py b/src/software/lmi/software/LMI_ResourceForSoftwareIdentity.py index ca22337..ca125ad 100644 --- a/src/software/lmi/software/LMI_ResourceForSoftwareIdentity.py +++ b/src/software/lmi/software/LMI_ResourceForSoftwareIdentity.py @@ -25,6 +25,7 @@ import pywbem from pywbem.cim_provider2 import CIMProvider2 from lmi.common import cmpi_logging +from lmi.software import util from lmi.software.core import generate_references from lmi.software.core import Identity from lmi.software.core import IdentityResource @@ -61,9 +62,7 @@ def generate_repository_referents(env, object_name, model, _keys_only): include_repos=repo.repoid, exclude_repos='*') model['AvailableSAP'] = IdentityResource.repo2model(repo) - pkg_model = pywbem.CIMInstanceName( - classname="LMI_SoftwareIdentity", - namespace="root/cimv2") + pkg_model = util.new_instance_name("LMI_SoftwareIdentity") for pkg_info in pkglist: model["ManagedElement"] = Identity.pkg2model( pkg_info, model=pkg_model) @@ -167,12 +166,8 @@ class LMI_ResourceForSoftwareIdentity(CIMProvider2): # we set property values on the model. model.path.update({'ManagedElement': None, 'AvailableSAP': None}) - elem_model = pywbem.CIMInstanceName( - classname="LMI_SoftwareIdentity", - namespace="root/cimv2") - sap_model = pywbem.CIMInstanceName( - classname="LMI_SoftwareIdentityResource", - namespace="root/cimv2") + elem_model = util.new_instance_name("LMI_SoftwareIdentity") + sap_model = util.new_instance_name("LMI_SoftwareIdentityResource") # maps repoid to instance name with YumDB.get_instance() as ydb: pl = ydb.get_package_list('available', |