Skip to content

Commit

Permalink
Accept empty description
Browse files Browse the repository at this point in the history
  • Loading branch information
kk-at-redhat authored Feb 21, 2025
1 parent 70ea0a7 commit 4d43ab7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions awx_collection/plugins/modules/credential.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,11 @@ def main():

if inputs:
credential_fields['inputs'] = inputs
if description:
credential_fields['description'] = description
if description is not None:
if description == '':
credential_fields['description'] = ''
else:
credential_fields['description'] = description
if organization:
credential_fields['organization'] = org_id

Expand Down

0 comments on commit 4d43ab7

Please # to comment.