aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/rename_nics.py
diff options
context:
space:
mode:
authorcarey.xu <carey.xuhan@huawei.com>2016-02-03 18:03:03 +0800
committercarey xu <carey.xuhan@huawei.com>2016-02-04 04:36:09 +0000
commitdc2f70258de443c90c6d422fec77d433e746b4fa (patch)
treec08f2ebabdcd49457a4e9b666de58133c44fe73b /deploy/rename_nics.py
parent5d6224060497294aeb89a6fa23072130b25093ec (diff)
bugfix: fix rename nic bug
Change-Id: Ideb729dc857ed00b337c977e7dd1ae46d3ced5ec Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'deploy/rename_nics.py')
-rw-r--r--deploy/rename_nics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deploy/rename_nics.py b/deploy/rename_nics.py
index ef52d63..505d6bc 100644
--- a/deploy/rename_nics.py
+++ b/deploy/rename_nics.py
@@ -12,8 +12,8 @@ def rename_nics(dha_info, rsa_file, compass_ip):
interfaces = host.get('interfaces')
if interfaces:
for interface in interfaces:
- nic_name = interfaces.keys()[0]
- mac = interfaces.values()[0]
+ nic_name = interface.keys()[0]
+ mac = interface.values()[0]
exec_cmd("ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
-i %s root@%s \