Skip to content

Execution environments: accept empty description #15859

New issue

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

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

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

kk-at-redhat
Copy link
Contributor

SUMMARY

related #15856

ISSUE TYPE

Bug, Docs Fix or other nominal change

COMPONENT NAME

Collection

AWX VERSION
4.6.7
ADDITIONAL INFORMATION

See linked ticket for testing steps

@github-actions github-actions bot added component:awx_collection issues related to the collection for controlling AWX community labels Feb 21, 2025
if description:
new_fields['description'] = description
if description is not None:
if description == '':
Copy link
Contributor

@sean-m-sullivan sean-m-sullivan Mar 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed, should be able to just use

        if field_val is not None:
            new_fields[field_name] = field_val
        and if you provide a '' it will pass that along.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, Sean. If I make the change and re-test do I have your commitment to review this one and a bunch more similar ones I submitted related to empty values in different modules and fields?

(I just don't fee like spending more time on all that if nobody will be looking)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see about pushing the BU to review it, I'm just a frequent Contributor like you and caught this :) @kk-at-redhat

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sean-m-sullivan good catch

@kk-at-redhat can you update this code, and the other "allow empty description" changes you made in the other PRs (that may already be merged)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community component:awx_collection issues related to the collection for controlling AWX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants