Apex, Functest: fixes missing sudo when searching for VM 51/12451/1
authorTim Rozet <trozet@redhat.com>
Tue, 19 Apr 2016 19:06:43 +0000 (15:06 -0400)
committerTim Rozet <trozet@redhat.com>
Tue, 19 Apr 2016 19:06:43 +0000 (15:06 -0400)
Change-Id: I5a8a9ffcbeb078775efb060a14f59f13753b4d01
Signed-off-by: Tim Rozet <trozet@redhat.com>
jjb/functest/functest-ci-jobs.yml

index d691140..79a5cab 100644 (file)
             # labconfig is used only for joid
             labconfig=""
             if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
-                if virsh list | grep instack; then
+                if sudo virsh list | grep instack; then
                     instack_mac=$(sudo virsh domiflist instack | grep default | \
                                   grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
-                elif virsh list | grep undercloud; then
+                elif sudo virsh list | grep undercloud; then
                     instack_mac=$(sudo virsh domiflist undercloud | grep default | \
                                   grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
                 else