diff options
author | Zhijiang Hu <hu.zhijiang@zte.com.cn> | 2017-01-03 07:57:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-01-03 07:57:27 +0000 |
commit | 09f9c88c999e3d6b2e2c88c29f505bb39b8fbc19 (patch) | |
tree | 19320371dfe0dc9098473518259532f404c2abdb /deploy | |
parent | 644940250eff2f1c53d22928a3ae5c6335e4faba (diff) | |
parent | 4d8d834152562cf4bd6f0a074e294330bd843d9c (diff) |
Merge "fix interface get type in get_conf"
Diffstat (limited to 'deploy')
-rwxr-xr-x | deploy/get_conf.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/deploy/get_conf.py b/deploy/get_conf.py index 569f5ede..a2d7bf6a 100755 --- a/deploy/get_conf.py +++ b/deploy/get_conf.py @@ -23,8 +23,9 @@ def decorator_mk(types): result = {} for item in item_list: ret = func(item) - if ret.keys()[0] in result: - result[ret.keys()[0]].append(ret.values()[0][0]) + item_name = ret.keys().pop() + if result is not None and item_name in result: + result[item_name] = result[item_name] + ret[item_name] else: result.update(ret) return result |