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

vmware_host_acceptance: Remove state list #1872

Closed
mariolenz opened this issue Oct 10, 2023 · 2 comments · Fixed by #1877
Closed

vmware_host_acceptance: Remove state list #1872

mariolenz opened this issue Oct 10, 2023 · 2 comments · Fixed by #1877
Assignees
Labels
bug This issue/PR relates to a bug tests tests
Milestone

Comments

@mariolenz
Copy link
Collaborator

mariolenz commented Oct 10, 2023

SUMMARY

Remove the state list from vmware_host_acceptance. The ansible-core sanity tests don't like this.

Maybe the best solution would be to remove the acceptance_level parameter and use its choices for state.

edit:
I will remove acceptance_level and move its options to state so that

acceptance_level: 'community'
state: present

will become

state: 'community'

This also means there won't be a state list anymore. In order to get information about the current acceptance level, I will introduce a new module vmware_host_acceptance_info.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

vmware_host_acceptance

@mariolenz mariolenz added bug This issue/PR relates to a bug tests tests labels Oct 10, 2023
@mariolenz mariolenz added this to the 4.0.0 milestone Oct 10, 2023
@mariolenz mariolenz changed the title vmware_host_acceptance: vmware_host_acceptance: Remove the state list Oct 10, 2023
@mariolenz mariolenz changed the title vmware_host_acceptance: Remove the state list vmware_host_acceptance: Remove state list Oct 10, 2023
@ihumster
Copy link
Collaborator

ihumster commented Oct 10, 2023

vmware_host_acceptance module must be set of desired acceptance level for host. But show current acceptance level must be another module vmware_host_acceptance_level_info for example. Issues with common module parameter 'state' when we try to combine the functionality of info and desired state modules, imho.

@mariolenz
Copy link
Collaborator Author

@ihumster Good point. I'll try to create a vmware_host_acceptance_level_info module when I implement this.

@mariolenz mariolenz self-assigned this Oct 12, 2023
softwarefactory-project-zuul bot pushed a commit that referenced this issue Oct 15, 2023
vmware_host_acceptance: Remove acceptance_level

SUMMARY
Fixes #1872
Removing acceptance_level and move its options to state so that
acceptance_level: 'community'
state: present

will become
state: 'community'

This also means there won't be a state list anymore. In order to get information about the current acceptance level, I will introduce a new module vmware_host_acceptance_info.
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
vmware_host_acceptance
vmware_host_acceptance_info
ADDITIONAL INFORMATION

Reviewed-by: Alexander Nikitin <ihumster@ihumster.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug tests tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants