summaryrefslogtreecommitdiffstats
path: root/src/software/openlmi/software/LMI_HostedSoftwareCollection.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/software/openlmi/software/LMI_HostedSoftwareCollection.py')
-rw-r--r--src/software/openlmi/software/LMI_HostedSoftwareCollection.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/software/openlmi/software/LMI_HostedSoftwareCollection.py b/src/software/openlmi/software/LMI_HostedSoftwareCollection.py
index 113ce7c..4a51041 100644
--- a/src/software/openlmi/software/LMI_HostedSoftwareCollection.py
+++ b/src/software/openlmi/software/LMI_HostedSoftwareCollection.py
@@ -64,10 +64,6 @@ class LMI_HostedSoftwareCollection(CIMProvider2):
CIM_ERR_FAILED (some other unspecified error occurred)
"""
- for key_prop in ("Antecedent", "Dependent"):
- if not key_prop in model:
- raise pywbem.CIMError(pywbem.CIM_ERR_INVALID_PARAMETER,
- "Missing Antecedent key property!")
ComputerSystem.check_path_property(env, model, "Antecedent")
SystemCollection.check_path_property(env, model, "Dependent")
@@ -99,11 +95,7 @@ class LMI_HostedSoftwareCollection(CIMProvider2):
Possible Errors:
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({'Dependent': None, 'Antecedent': None})
model["Antecedent"] = ComputerSystem.get_path()
@@ -111,7 +103,6 @@ class LMI_HostedSoftwareCollection(CIMProvider2):
yield model
-
@cmpi_logging.trace_method
def set_instance(self, env, instance, modify_existing):
"""Return a newly created or modified instance.
@@ -137,7 +128,6 @@ class LMI_HostedSoftwareCollection(CIMProvider2):
if modify_existing is True, indicating that the operation
was ModifyInstance)
CIM_ERR_FAILED (some other unspecified error occurred)
-
"""
raise pywbem.CIMError(pywbem.CIM_ERR_NOT_SUPPORTED)
@@ -161,7 +151,6 @@ class LMI_HostedSoftwareCollection(CIMProvider2):
CIM_ERR_NOT_FOUND (the CIM Class does exist, but the requested CIM
Instance does not exist in the specified namespace)
CIM_ERR_FAILED (some other unspecified error occurred)
-
"""
raise pywbem.CIMError(pywbem.CIM_ERR_NOT_SUPPORTED)
@@ -222,11 +211,9 @@ class LMI_HostedSoftwareCollection(CIMProvider2):
CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized
or otherwise incorrect parameters)
CIM_ERR_FAILED (some other unspecified error occurred)
-
"""
ch = env.get_cimom_handle()
- # If you want to get references for free, implemented in terms
- # of enum_instances, just leave the code below unaltered.
+
if ch.is_subclass(object_name.namespace,
sub=object_name.classname,
super='CIM_SystemSpecificCollection') or \