summaryrefslogtreecommitdiffstats
path: root/tests/lib/installers
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/installers')
-rw-r--r--tests/lib/installers/apex2
-rw-r--r--tests/lib/installers/fuel7
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/lib/installers/apex b/tests/lib/installers/apex
index 54b3dce2..45a5dcdc 100644
--- a/tests/lib/installers/apex
+++ b/tests/lib/installers/apex
@@ -3,7 +3,7 @@
function get_installer_ip {
local instack_mac=$(sudo virsh domiflist instack | awk '/default/{print $5}')
INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk '{print $1}')
- die_if_not_set $LINENO $INSTALLER_IP "No installer IP"
+ die_if_not_set $LINENO INSTALLER_IP "No installer IP"
}
function installer_get_ssh_keys {
diff --git a/tests/lib/installers/fuel b/tests/lib/installers/fuel
index 31fe1fb6..9ff9e724 100644
--- a/tests/lib/installers/fuel
+++ b/tests/lib/installers/fuel
@@ -7,9 +7,10 @@ fi
function get_installer_ip {
ssh_opts_cpu="$ssh_opts -i instack_key"
is_set INSTALLER_IP && return
- local instack_mac=$(sudo virsh domiflist fuel-master | awk '/fuel1/{print $5}')
+ local instack_mac
+ instack_mac=$(sudo virsh domiflist fuel-master | awk '/fuel1/{print $5}')
INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk '{print $1}')
- die_if_not_set $LINENO $INSTALLER_IP "No installer IP"
+ die_if_not_set $LINENO INSTALLER_IP "No installer IP"
}
function get_controller_ips {
@@ -17,7 +18,7 @@ function get_controller_ips {
get_installer_ip
CONTROLLER_IPS=$(ssh $ssh_opts_cpu root@$INSTALLER_IP \
"fuel node | grep controller | cut -d '|' -f 5|xargs")
- die_if_not_set $LINENO $CONTROLLER_IPS "No controller IPs"
+ die_if_not_set $LINENO CONTROLLER_IPS "No controller IPs"
}
function installer_get_ssh_keys {