Reflect upstream change to local script fixing playbook syntax check 31/20231/3
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Fri, 2 Sep 2016 10:16:31 +0000 (12:16 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Fri, 2 Sep 2016 10:21:09 +0000 (12:21 +0200)
Upstream change: https://review.openstack.org/#/c/358477/

Change-Id: Ibfef32aec4b62d8d1d13728abec374a2d4560d81
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
prototypes/bifrost/scripts/test-bifrost-deployment.sh

index 66affe9..d796f35 100755 (executable)
@@ -71,17 +71,17 @@ set -x -o nounset
 cd $BIFROST_HOME/playbooks
 
 # Syntax check of dynamic inventory test path
-${ANSIBLE} -vvvv \
-       -i inventory/localhost \
-       test-bifrost-create-vm.yaml \
-       --syntax-check \
-       --list-tasks
-${ANSIBLE} -vvvv \
-       -i inventory/localhost \
-       ${TEST_PLAYBOOK} \
-       --syntax-check \
-       --list-tasks \
-       -e testing_user=${TESTING_USER}
+for task in syntax-check list-tasks; do
+    ${ANSIBLE} -vvvv \
+           -i inventory/localhost \
+           test-bifrost-create-vm.yaml \
+           --${task}
+    ${ANSIBLE} -vvvv \
+           -i inventory/localhost \
+           ${TEST_PLAYBOOK} \
+           --${task} \
+           -e testing_user=${TESTING_USER}
+done
 
 # Create the test VMS
 ${ANSIBLE} -vvvv \