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>
elif [[ $DEPLOY_SCENARIO == "os-odl-nofeature" ]]; then
export VM_MEMORY_SIZE=16384
fi
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}