1
0
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:
Sergei Trofimov
2017-03-21 17:45:12 +00:00
parent 84c1fc2bcf
commit ebf917a8a9
2 changed files with 245 additions and 15 deletions

View File

@@ -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__'):