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 5f5121f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions awx_collection/plugins/modules/execution_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,11 @@ def main():
'name': new_name if new_name else (module.get_item_name(existing_item) if existing_item else name),
'image': image,
}
if description:
new_fields['description'] = description
if description is not None:
if description == '':
new_fields['description'] = ''
else:
new_fields['description'] = description

if pull:
new_fields['pull'] = pull
Expand Down

0 comments on commit 5f5121f

Please sign in to comment.