awx.awx.organization fails when new_name is set and organisation already got renamed #15572
Open
5 of 11 tasks
Labels
community
component:awx_collection
issues related to the collection for controlling AWX
needs_triage
type:bug
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
awx/awx_collection/plugins/modules/organization.py
Line 149 in ece21b1
just change
to
PS. similar issues may affect other modules having new_name attribute. Should I provide PR?
The text was updated successfully, but these errors were encountered: