Skip to content
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

Remove field properties which are default values anyway #6472

Merged
merged 1 commit into from
Apr 7, 2020

Conversation

AlanCoding
Copy link
Member

SUMMARY

We inconsistently provided in some cases, and did not provide in other cases, these things.

Ansible core uses these as the defaults, so we don't have to put them in. I find it a whole lot more readable with them out. Our modules and API follows this pattern quite well - that the vast majority of parameters are non-required string-types. There's no need to say so each time.

ISSUE TYPE
  • Feature Pull Request
AWX VERSION
9.3.0

@AlanCoding AlanCoding added the component:awx_collection issues related to the collection for controlling AWX label Mar 29, 2020
Copy link
Contributor

@squidboylan squidboylan left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me

@AlanCoding AlanCoding force-pushed the no_required branch 2 times, most recently from 0c30ed3 to 8d46535 Compare April 4, 2020 17:33
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@softwarefactory-project-zuul
Copy link
Contributor

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

remove cases of required=False, the default
remove str type specifier which, the default
remove supports check mode, not changeable
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit db40d55 into ansible:devel Apr 7, 2020
@AlanCoding AlanCoding deleted the no_required branch May 15, 2020 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:awx_collection issues related to the collection for controlling AWX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants