aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4
diff options
context:
space:
mode:
authorRuan HE <ruan.he@orange.com>2017-11-30 10:47:18 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-11-30 10:47:18 +0000
commit9868e8095cfce70fe4c317639c5a00c11422e8e9 (patch)
treeed21cff8c772042354fa58e75011d799fbd2586c /moonv4
parentad7dc26ae556f04293a6cee2083d2c7fc14cc1f3 (diff)
parent31bb43b52fe591509033f6e38e758ae0ae6f507f (diff)
Merge "Fix a bug in manager API"
Diffstat (limited to 'moonv4')
-rw-r--r--moonv4/moon_manager/moon_manager/api/generic.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/moonv4/moon_manager/moon_manager/api/generic.py b/moonv4/moon_manager/moon_manager/api/generic.py
index ac4f8f1e..9ff285c8 100644
--- a/moonv4/moon_manager/moon_manager/api/generic.py
+++ b/moonv4/moon_manager/moon_manager/api/generic.py
@@ -107,18 +107,18 @@ class API(Resource):
api_desc = dict()
for api_name in api_list:
api_desc[api_name] = {}
- group_api_obj = eval("moon_interface.api.{}".format(api_name))
+ group_api_obj = eval("moon_manager.api.{}".format(api_name))
api_desc[api_name]["description"] = group_api_obj.__doc__
if "__version__" in dir(group_api_obj):
api_desc[api_name]["version"] = group_api_obj.__version__
object_list = list(filter(lambda x: "__" not in x, dir(group_api_obj)))
- for obj in map(lambda x: eval("moon_interface.api.{}.{}".format(api_name, x)), object_list):
+ for obj in map(lambda x: eval("moon_manager.api.{}.{}".format(api_name, x)), object_list):
if "__urls__" in dir(obj):
api_desc[api_name][obj.__name__] = dict()
api_desc[api_name][obj.__name__]["urls"] = obj.__urls__
api_desc[api_name][obj.__name__]["methods"] = dict()
for _method in filter(lambda x: x in __methods, dir(obj)):
- docstring = eval("moon_interface.api.{}.{}.{}.__doc__".format(api_name, obj.__name__, _method))
+ docstring = eval("moon_manager.api.{}.{}.{}.__doc__".format(api_name, obj.__name__, _method))
api_desc[api_name][obj.__name__]["methods"][_method] = docstring
api_desc[api_name][obj.__name__]["description"] = str(obj.__doc__)
if group_id in api_desc: