def get_configuration(obj, path):
"""
Helper function to follow the given path starting with the given object
Arguments:
obj - Beginning object to start searching down. obj should have a get_resource()
path - Path of object to get
"""
try:
config = obj.get_resource(path)
except (IndexError, AttributeError, TypeError, AssertionError, KeyError) as e:
traceback.print_exc()
raise PathError("Resource not found: " + str(e.message))
print (config)
return config
#
# If DELETE /redfish/v1/reset, then reset the resource manager
#
评论列表
文章目录