mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 03:12:34 +01:00
Added filer, http and user directory resource getters.
This commit is contained in:
@@ -588,10 +588,11 @@ def touch(path):
|
||||
def get_object_name(obj):
|
||||
if hasattr(obj, 'name'):
|
||||
return obj.name
|
||||
elif hasattr(obj,'func_name'):
|
||||
return obj.func_name
|
||||
elif hasattr(obj, 'im_func'):
|
||||
return '{}.{}'.format(obj.im_class.__name__, obj.im_func.func_name)
|
||||
return '{}.{}'.format(get_object_name(obj.im_class),
|
||||
obj.im_func.func_name)
|
||||
elif hasattr(obj, 'func_name'):
|
||||
return obj.func_name
|
||||
elif hasattr(obj, '__name__'):
|
||||
return obj.__name__
|
||||
elif hasattr(obj, '__class__'):
|
||||
|
Reference in New Issue
Block a user