Open bartowl opened 1 day ago
Forgot to mention, I use version awx.awx:24.6.1 of the collection.
Main question is - is this wanted behaviour, or a bug. If this is indeed a bug I could provide PR against this and potentialy other modules having new_name
Please confirm the following
security@ansible.com
instead.)Bug Summary
The issue happens, when awx.awx.organization is called twice with both
name
andnew_name
attribute. First time, the Organization gets renamed properly, but during second run, instead of the task reporting plain 'ok' as no change is needed since the organisation is already renamed it shows following error:AWX version
24.6.1
Select the relevant components
Installation method
N/A
Modifications
no
Ansible version
2.15.12
Operating system
Linux
Web browser
Chrome
Steps to reproduce
execute twice following task:
Expected results
I would expect this task reports OK, as the change has already been done (for the second and following runs)
Actual results
I get an error:
Additional information
This problem seems to be an easy fix in https://github.com/ansible/awx/blob/ece21b15d06e8108a618ed2f6b5dd85366cc2dcc/awx_collection/plugins/modules/organization.py#L149
just change
to
PS. similar issues may affect other modules having new_name attribute. Should I provide PR?