diff options
author | Eltanany Shaaban <shaaban.eltanany.ext@orange.com> | 2020-12-03 19:56:05 +0200 |
---|---|---|
committer | Yuriy Malakov <yuriy.malakov@att.com> | 2020-12-04 15:10:55 +0000 |
commit | 38bf685cbb3b9601d2787528c3ac851eb1fb4f2c (patch) | |
tree | 79166022f862c8cf4563f2be28b9c7e4974b7693 | |
parent | bab2afc14516970ff24c1547984aec23861f00e0 (diff) |
add toggle variable ansible fire failure to awx function
-add logs output when it fails
Issue-ID: CCSDK-2366
Signed-off-by: Eltanany Shaaban <shaaban.eltanany.ext@orange.com>
Change-Id: Ie1a122865be541a45de157ab3afa9e426d1defb4
(cherry picked from commit 81deaed80b00c7e09e1c8a962f75d9e29ae6c305)
-rw-r--r-- | ms/blueprintsprocessor/functions/ansible-awx-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/ansible/executor/ComponentRemoteAnsibleExecutor.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ms/blueprintsprocessor/functions/ansible-awx-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/ansible/executor/ComponentRemoteAnsibleExecutor.kt b/ms/blueprintsprocessor/functions/ansible-awx-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/ansible/executor/ComponentRemoteAnsibleExecutor.kt index dccbe2e3c..133e4a52b 100644 --- a/ms/blueprintsprocessor/functions/ansible-awx-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/ansible/executor/ComponentRemoteAnsibleExecutor.kt +++ b/ms/blueprintsprocessor/functions/ansible-awx-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/ansible/executor/ComponentRemoteAnsibleExecutor.kt @@ -228,9 +228,9 @@ open class ComponentRemoteAnsibleExecutor( val message = "Execution of job template $job_template_name failed for requestId $processId." + " (Response: ${response.body}) " log.error(message) setNodeOutputErrors(ATTRIBUTE_EXEC_CMD_STATUS_ERROR, message) - } else { - populateJobRunResponse(awxClient, jobId, workflowPrefix, jobStatus) } + + populateJobRunResponse(awxClient, jobId, workflowPrefix, jobStatus) } else { // The job template requirements were not fulfilled with the values passed in. The message below will // provide more information via the response, like the ignored_fields, or variables_needed_to_start, |