From 01ad1bb5e9b159ad0fd6e5f234d34f649565a472 Mon Sep 17 00:00:00 2001 From: Martin Kopec Date: Tue, 30 Jun 2020 16:21:35 +0000 Subject: [PATCH] Add missing artcl_publish in infrared plugin The patch adds a missing artcl_publish condition in the infrared plugin definition - infrared_plugin/main.yml. The var is used to controll publishing part of the role. Change-Id: I138f9d892b8058ae3f7b2e69eb9fd335de9e7367 --- infrared_plugin/main.yml | 1 + molecule/infrared/converge.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/infrared_plugin/main.yml b/infrared_plugin/main.yml index 02f0f12..c4006d7 100644 --- a/infrared_plugin/main.yml +++ b/infrared_plugin/main.yml @@ -56,6 +56,7 @@ - name: Ansible role collect logs include_role: name: ansible-role-collect-logs + when: artcl_publish|default(false)|bool - name: Delete artifact files from localhost file: diff --git a/molecule/infrared/converge.yml b/molecule/infrared/converge.yml index c8685d7..f2f7c20 100644 --- a/molecule/infrared/converge.yml +++ b/molecule/infrared/converge.yml @@ -76,7 +76,8 @@ shell: | export PATH=$PATH:/usr/local/sbin:/usr/sbin source {{ infrared_venv }}/bin/activate - ir ansible-role-collect-logs --collect_log_types "testing" \ + ir ansible-role-collect-logs --openstack_nodes localhost \ + --collect_log_types "testing" \ --artcl_collect_dir {{ infrared_location }}/collected_files_test \ --artcl_collect_list /tmp/*.log,/tmp/just_file \ --artcl_collect_list_append /tmp/config.conf \