From 1b238dde764f68404489b21245e0b1494cb06e8e Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Wed, 20 Dec 2017 11:18:41 +0000 Subject: 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 --- xci/playbooks/get-opnfv-scenario-requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xci/playbooks/get-opnfv-scenario-requirements.yml') 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: -- cgit 1.2.3-korg