summaryrefslogtreecommitdiffstats
path: root/xci/playbooks
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-12-20 11:18:41 +0000
committerFatih Degirmenci <fdegir@gmail.com>2017-12-21 00:11:01 +0100
commit1b238dde764f68404489b21245e0b1494cb06e8e (patch)
treebeb551905042515b7ca7af94b4cb669c6bd1fe4e /xci/playbooks
parent8662864a166d9e89ba8058c871526b3ad94aae21 (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')
-rw-r--r--xci/playbooks/get-opnfv-scenario-requirements.yml2
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: