diff options
author | Harry <huangxiangyu5@huawei.com> | 2016-10-13 19:36:13 +0800 |
---|---|---|
committer | Harry <huangxiangyu5@huawei.com> | 2016-10-13 19:36:13 +0800 |
commit | 48bfb3f5a8a697a7c0085352b80f06c484676399 (patch) | |
tree | 6bad8ab147f6c3c7c2b7cee4271e2b4c4c6fc664 /util | |
parent | 3d8da42ac3e7c844106a6bfa1c36df40387704dc (diff) |
fix bugs in /util/check_valid.py
Change-Id: I0d3907a97dc3676a44653125eadb953336677c1c
Signed-off-by: Harry <huangxiangyu5@huawei.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/check_valid.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/check_valid.py b/util/check_valid.py index 13b5602f..713a292f 100644 --- a/util/check_valid.py +++ b/util/check_valid.py @@ -57,7 +57,7 @@ def check_network(network): def check_dha(dha): if dha['TYPE'] == 'baremetal': for i in dha['hosts']: - if not (check_mac(i['mac']) and check_mac(i['interface'][0]['eth1']) and check_ip(i['impiIp'])): + if not (check_mac(i['mac']) and check_mac(i['interfaces'][0]['eth1']) and check_ip(i['ipmiIp'])): return False return True |