From: wutianwei Date: Thu, 21 Dec 2017 14:55:19 +0000 (+0800) Subject: Fix the parameter of scenario directories X-Git-Tag: 6.0.0~196 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F81%2F49481%2F1;p=releng-xci.git Fix the parameter of scenario directories 1. the "+" and "'" will be part of the string in the path parameter of ansible. So the directories we create are not right. we need remove these char. 2. it miss the "{{" in ansible variable Change-Id: I30c9804450588c63f5f18c63c1d90cd869fad90e Signed-off-by: wutianwei --- diff --git a/xci/playbooks/get-opnfv-scenario-requirements.yml b/xci/playbooks/get-opnfv-scenario-requirements.yml index 037c6ea9..7f10a465 100644 --- a/xci/playbooks/get-opnfv-scenario-requirements.yml +++ b/xci/playbooks/get-opnfv-scenario-requirements.yml @@ -23,7 +23,7 @@ tasks: - name: Remove existing scenario directories file: - path: "{{ item[1] }} + '/' + {{ item[0].scenario }}" + path: "{{ item[1] }}/{{ item[0].scenario }}" state: absent with_nested: - "{{ scenarios }}" @@ -33,7 +33,7 @@ - name: Create scenario directories file: - path: "{{ role_path_default }} + '/' + item.scenario }}" + path: "{{ role_path_default }}/{{ item.scenario }}" state: directory with_items: "{{ scenarios }}" loop_control: