diff options
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 |