xci: get-opnfv-scenario-requirements.yml: Check if facts are set 27/50827/2
authorMarkos Chandras <mchandras@suse.de>
Fri, 19 Jan 2018 09:38:13 +0000 (09:38 +0000)
committerMarkos Chandras <mchandras@suse.de>
Fri, 19 Jan 2018 11:48:08 +0000 (11:48 +0000)
commitb12d656ce20490d1a7079d6c1ff3c34844edd568
tree039e92c5f22e365619c709addda592b60d334739
parent5eaa9da62dabbf31fc83f0c43c6bc56f68468f9c
xci: get-opnfv-scenario-requirements.yml: Check if facts are set

When the user selects an invalid combination then some facts may not be
set so the deployment may fail in a crypt way like in the following case

fatal: [localhost]: FAILED! => {"failed": true, "msg": "The conditional
check 'deploy_scenario_installer' failed. The error was: error while
evaluating conditional (deploy_scenario_installer):
'deploy_scenario_installer' is undefined\n\nThe error appears to have been in
'/home/opnfv/releng-xci/xci/playbooks/get-opnfv-scenario-requirements.yml':
line 114, column 11, but may\nbe elsewhere in the file depending on the
exact syntax problem.\n\nThe offending line appears to be:\n\n
when: item.installer == XCI_INSTALLER\n        - set_fact:\n
          ^
here\n"}

Change-Id: I931376d99bb178b15c4a9a71d47b48b01b858e4e
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/playbooks/get-opnfv-scenario-requirements.yml