From 48bfb3f5a8a697a7c0085352b80f06c484676399 Mon Sep 17 00:00:00 2001 From: Harry Date: Thu, 13 Oct 2016 19:36:13 +0800 Subject: fix bugs in /util/check_valid.py Change-Id: I0d3907a97dc3676a44653125eadb953336677c1c Signed-off-by: Harry --- util/check_valid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') 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 -- cgit 1.2.3-korg