From 4d8d834152562cf4bd6f0a074e294330bd843d9c Mon Sep 17 00:00:00 2001 From: Zhou Ya Date: Thu, 22 Dec 2016 14:34:51 +0800 Subject: fix interface get type in get_conf to kill '[0]' in get_conf.py file Change-Id: I82282ff8431bf3eb93746e505e18547929f20ed9 Signed-off-by: Zhou Ya --- deploy/get_conf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'deploy') diff --git a/deploy/get_conf.py b/deploy/get_conf.py index eaac8b17..c3f7e420 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 -- cgit 1.2.3-korg