From: Markos Chandras Date: Wed, 20 Dec 2017 11:18:41 +0000 (+0000) Subject: xci: playbooks: Fix conditional for scenario/flavor fact X-Git-Tag: 6.0.0~198 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=1b238dde764f68404489b21245e0b1494cb06e8e;p=releng-xci.git xci: playbooks: Fix conditional for scenario/flavor fact We need to use proper jinja2 code to set the fact properly. Change-Id: I903233c0e059edf2af973ea9c08b8bd80795e1a9 Signed-off-by: Markos Chandras --- diff --git a/xci/playbooks/get-opnfv-scenario-requirements.yml b/xci/playbooks/get-opnfv-scenario-requirements.yml index 944bf53c..037c6ea9 100644 --- a/xci/playbooks/get-opnfv-scenario-requirements.yml +++ b/xci/playbooks/get-opnfv-scenario-requirements.yml @@ -85,7 +85,7 @@ - name: Determine if selected {{ DEPLOY_SCENARIO }} scenario can be deployed set_fact: - deploy_scenario_on_flavor: XCI_FLAVOR in item.flavors + deploy_scenario_on_flavor: "{{ (XCI_FLAVOR in item.flavors) | ternary(True, False) }}" when: DEPLOY_SCENARIO == item.scenario with_items: "{{ scenarios }}" loop_control: