summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2017-09-01 14:54:14 -0400
committerTim Rozet <trozet@redhat.com>2017-09-01 14:54:14 -0400
commit6d7df1240ecd45c761002d142cdd2118ff45fa50 (patch)
treed4a04d418a60e44864f18a6f0bc4b3d87fdeda5f /utils
parent2de1d544a4ce89acd0c04518cad919d9187266b7 (diff)
Apex: Need to use sudo for virsh for fetch creds
Change-Id: I28e259bf8cdc7431a99227ba3e1eb8615744851e Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/fetch_os_creds.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/fetch_os_creds.sh b/utils/fetch_os_creds.sh
index 72bebade1..0e2a2b93f 100755
--- a/utils/fetch_os_creds.sh
+++ b/utils/fetch_os_creds.sh
@@ -149,7 +149,7 @@ if [ "$installer_type" == "fuel" ]; then
elif [ "$installer_type" == "apex" ]; then
if ! ipcalc -c $installer_ip; then
- installer_ip=$(virsh domifaddr undercloud | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')
+ installer_ip=$(sudo virsh domifaddr undercloud | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')
if [ -z "$installer_ip" ] || ! $(ipcalc -c $installer_ip); then
echo "Unable to find valid IP for Apex undercloud: ${installer_ip}"
exit 1