diff options
author | Julien <zhang.jun3g@zte.com.cn> | 2016-12-08 10:50:42 +0800 |
---|---|---|
committer | Julien <zhang.jun3g@zte.com.cn> | 2016-12-08 10:50:42 +0800 |
commit | 15d09792a8ba5ffe750a97b19850716e1ff1e766 (patch) | |
tree | a95a01f5345e922b6eb2e7c4108c0c42b9fec473 /deploy/get_conf.py | |
parent | 9bdfb2ea2627ee597e392b6bb465feb03dc7ac42 (diff) |
fix yml define and wrong implementation
1. use list to define interfaces
2. no necessary to fetch [0]
Change-Id: If17605b27c00d4e7fca8bced9c0bb4f7c724a4f2
Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
Diffstat (limited to 'deploy/get_conf.py')
-rwxr-xr-x | deploy/get_conf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/get_conf.py b/deploy/get_conf.py index 31ccaca0..d2b505c8 100755 --- a/deploy/get_conf.py +++ b/deploy/get_conf.py @@ -76,7 +76,7 @@ def network(s, seq, network=None): @hostdecorator def interface(s, seq, host=None): hostname = host.get('name', '') - interface = host.get('interface', '')[0] + interface = host.get('interface', '') map = {} map[hostname] = interface return map |