Bug fix: initialize ODL_VERSION 93/57493/2 6.0.1
authorManuel Buil <mbuil@suse.com>
Wed, 16 May 2018 18:30:39 +0000 (20:30 +0200)
committerManuel Buil <mbuil@suse.com>
Thu, 17 May 2018 10:28:53 +0000 (12:28 +0200)
When doing the ansible lookup, if the variable does not exist, an empty
string is returned. That is a bug which must be fixed:

https://github.com/ansible/ansible/issues/17329

Until then, we initialize the variable

Change-Id: I92c43d15559600ff1583e1560c032377dc22793c
Signed-off-by: Manuel Buil <mbuil@suse.com>
scenarios/os-odl-nofeature/role/os-odl-nofeature/vars/main.yml [moved from scenarios/os-odl-nofeature/vars/main.yml with 100% similarity]
scenarios/os-odl-nofeature/xci_overrides

index 2c65df0..8d1df92 100644 (file)
@@ -5,3 +5,8 @@ if [[ $DEPLOY_SCENARIO == "os-odl-nofeature" ]] && [[ $XCI_FLAVOR == "ha" ]]; th
 elif [[ $DEPLOY_SCENARIO == "os-odl-nofeature" ]]; then
     export VM_MEMORY_SIZE=16384
 fi
+
+# Until this feature is developed, ODL_VERSION must be initialized:
+# https://github.com/ansible/ansible/issues/17329
+# otherwise the lookup in vars/main returns an empty string when not defined
+export ODL_VERSION=${ODL_VERSION:-latest_release}