From 54bdb14a63ecec528b96805d511411210bebacbe Mon Sep 17 00:00:00 2001 From: L2JE Date: Thu, 5 Oct 2023 09:48:06 -0300 Subject: [PATCH] replace config file path with configuration on failure data in inline playbook plugin --- .../ansible/plugin/AnsiblePlaybookInlineWorkflowNodeStep.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/groovy/com/rundeck/plugins/ansible/plugin/AnsiblePlaybookInlineWorkflowNodeStep.java b/src/main/groovy/com/rundeck/plugins/ansible/plugin/AnsiblePlaybookInlineWorkflowNodeStep.java index df7802cc..9212334b 100644 --- a/src/main/groovy/com/rundeck/plugins/ansible/plugin/AnsiblePlaybookInlineWorkflowNodeStep.java +++ b/src/main/groovy/com/rundeck/plugins/ansible/plugin/AnsiblePlaybookInlineWorkflowNodeStep.java @@ -96,12 +96,12 @@ public void executeNodeStep( } catch (AnsibleException e) { Map failureData = new HashMap<>(); failureData.put("message",e.getMessage()); - failureData.put("ansible-config", builder.getConfigFile()); + failureData.put("ansible-config", configuration); throw new NodeStepException(e.getMessage(), e, e.getFailureReason(), failureData, e.getMessage()); } catch (Exception e) { Map failureData = new HashMap<>(); failureData.put("message",e.getMessage()); - failureData.put("ansible-config", builder.getConfigFile()); + failureData.put("ansible-config", configuration); throw new NodeStepException(e.getMessage(),e, AnsibleException.AnsibleFailureReason.AnsibleError, failureData, e.getMessage()); }