diff options
author | 2017-12-20 11:18:41 +0000 | |
---|---|---|
committer | 2017-12-21 00:11:01 +0100 | |
commit | 1b238dde764f68404489b21245e0b1494cb06e8e (patch) | |
tree | beb551905042515b7ca7af94b4cb669c6bd1fe4e /xci/playbooks/get-opnfv-scenario-requirements.yml | |
parent | 8662864a166d9e89ba8058c871526b3ad94aae21 (diff) |
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 <mchandras@suse.de>
Diffstat (limited to 'xci/playbooks/get-opnfv-scenario-requirements.yml')
-rw-r--r-- | xci/playbooks/get-opnfv-scenario-requirements.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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: |