xci: playbooks: Fix message on fail task for deployed scenario 05/54305/1
authorMarkos Chandras <mchandras@suse.de>
Thu, 22 Mar 2018 10:08:03 +0000 (10:08 +0000)
committerMarkos Chandras <mchandras@suse.de>
Thu, 22 Mar 2018 10:08:33 +0000 (10:08 +0000)
The fail message was a bit weird since it listed all the scenarion
information as below:

TASK [Fail if {'scm': u'git', 'src':
u'https://git.opnfv.org/releng-xci', 'scenario': u'os-nosdn-nofeature',
'installers': [{'flavors': [u'ha', u'mini', u'noha'], 'installer':
u'osa', 'distros': [u'opensuse', u'ubuntu', u'centos']}], 'version': u'master', 'role':
u'xci/scenarios/os-nosdn-nofeature/role/os-nosdn-nofeature'} is not
supported] ***
skipping: [localhost]

This looks awkward and we should only list the actual scenario name
instead.

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

index 6937b47..d133048 100644 (file)
             - deploy_scenario_flavor
       when: deploy_scenario is defined
 
-    - name: Fail if {{ deploy_scenario }} is not supported
+    - name: Fail if {{ deploy_scenario.scenario }} is not supported
       fail:
         msg:
           - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-          - ERROR! The {{ deploy_scenario }} scenario can't be deployed. This is because
+          - ERROR! The {{ deploy_scenario.scenario }} scenario can't be deployed. This is because
           - the {{ installer_type }} XCI installer or the {{ xci_flavor }} flavor or the {{ xci_distro }}
           - distribution is not supported by this scenario. It may also be possible that
           - this scenario doesn't exist at all or it's not listed in {{ scenario_file }}.