Skip to content

Conversation

@chkp-ruthyt
Copy link

Issue:
When running scripts through the Ansible Gaia API, failed scripts are reported as "changed" instead of "failed".

Findings:
The Gaia API returns correct failure details (return-value ≠ 0 and an error message).

The Ansible module checks only the API call result (HTTP 200) and ignores the script execution result.

Solution:
The Ansible module was updated to validate the script return-value.
If the script fails, the task is now reported as failed.

@chkp-ruthyt
Copy link
Author

@chkp-majds could you please review this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant