Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Credential types module ignores empty value in description #15855

Open
5 of 11 tasks
kk-at-redhat opened this issue Feb 21, 2025 · 0 comments
Open
5 of 11 tasks

Credential types module ignores empty value in description #15855

kk-at-redhat opened this issue Feb 21, 2025 · 0 comments

Comments

@kk-at-redhat
Copy link

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to security@ansible.com instead.)

Bug Summary

When description value is empty it gets ignored instead of removing description.
Which makes it impossible to remove description.

AWX version

4.6.7

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

docker development environment

Modifications

no

Ansible version

2.15.13

Operating system

RHEL9

Web browser

No response

Steps to reproduce

ansible -m ansible.controller.credential_type -a "name='Credential Type A' description='AAAA'" localhost

localhost | SUCCESS => {
"changed": false,
"id": 48
}

ansible -m ansible.controller.credential_type -a "name='Credential Type A' description=''" localhost

Expected results

localhost | CHANGED => {
"changed": true,
"id": 48
}

Actual results

localhost | SUCCESS => {
"changed": false,
"id": 48
}

Additional information

No response

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant