diff options
Diffstat (limited to 'src/software/lmi/software/LMI_SoftwareIdentity.py')
-rw-r--r-- | src/software/lmi/software/LMI_SoftwareIdentity.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/software/lmi/software/LMI_SoftwareIdentity.py b/src/software/lmi/software/LMI_SoftwareIdentity.py index bb1a395..c532e82 100644 --- a/src/software/lmi/software/LMI_SoftwareIdentity.py +++ b/src/software/lmi/software/LMI_SoftwareIdentity.py @@ -121,16 +121,9 @@ class LMI_SoftwareIdentity(CIMProvider2): CIM_ERR_FAILED (some other unspecified error occurred) """ - # Prime model.path with knowledge of the keys, so key values on - # the CIMInstanceName (model.path) will automatically be set when - # we set property values on the model. - model.path.update({'InstanceID': None}) - - with YumDB.get_instance() as ydb: - pkglist = ydb.get_package_list( - 'all', allow_duplicates=True, sort=True) - for pkg_info in pkglist: - yield Identity.pkg2model(pkg_info, keys_only=keys_only, model=model) + # too many available packages to enumerate them + raise pywbem.CIMError(pywbem.CIM_ERR_NOT_SUPPORTED, + "Enumeration of instances is not supported.") @cmpi_logging.trace_method def set_instance(self, env, instance, modify_existing): |