summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhou Ya <zhou.ya@zte.com.cn>2016-12-22 14:34:51 +0800
committerzhou ya <zhou.ya@zte.com.cn>2017-01-03 02:25:12 +0000
commit4d8d834152562cf4bd6f0a074e294330bd843d9c (patch)
tree0c6ddc002078d37b53199e5b110d051010ce8052
parente77f23d3483621c52c1c2e25e9a0017ff1126ccd (diff)
fix interface get type in get_conf
to kill '[0]' in get_conf.py file Change-Id: I82282ff8431bf3eb93746e505e18547929f20ed9 Signed-off-by: Zhou Ya <zhou.ya@zte.com.cn>
-rwxr-xr-xdeploy/get_conf.py5
1 files changed, 3 insertions, 2 deletions
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