aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/rename_nics.py
diff options
context:
space:
mode:
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 ef52d63a..505d6bcf 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 \