You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if kwargs:
for prop_name, prop_value in imcgenutils.iteritems(kwargs):
if not imccoreutils.prop_exists(self, prop_name):
log.debug("Unknown property %s" % prop_name)
self.__set_prop(prop_name, prop_value)
If the prop does not exist a log message is printed but the property is still attempted to be set which causes a failure later in __set_prop where prop.access results in an AttributeError:
if not forced:
prop = imccoreutils.get_prop_meta(self, name)
if not imccoreutils.is_writable_prop(self, name):
if getattr(self, name) is not None or \
prop.access != \
imccoremeta.MoPropertyMeta.CREATE_ONLY:
raise ValueError("%s is not a read-write property." % name)
Here is the traceback:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "imcsdk/mometa/bios/BiosVfPackageCStateLimit.py", line 81, in __init__
ManagedObject.__init__(self, "BiosVfPackageCStateLimit", parent_mo_or_dn, **kwargs)
File "imcsdk/imcmo.py", line 99, in __init__
self.__set_prop(prop_name, prop_value)
File "imcsdk/imcmo.py", line 186, in __set_prop
prop.access != \
AttributeError: 'NoneType' object has no attribute 'access'
The text was updated successfully, but these errors were encountered:
From init of the ManagedObject class:
If the prop does not exist a log message is printed but the property is still attempted to be set which causes a failure later in
__set_prop
where prop.access results in an AttributeError:Here is the traceback:
The text was updated successfully, but these errors were encountered: