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

_options.py: use short form variables for listing providers #4099

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

rpjday
Copy link
Contributor

@rpjday rpjday commented Apr 14, 2023

Given that this file defines the helper variables:

_SUPPORTED_PROVIDERS = ["host", "lxd", "multipass"]
_HIDDEN_PROVIDERS = ["managed-host"]
_ALL_PROVIDERS = _SUPPORTED_PROVIDERS + _HIDDEN_PROVIDERS

it seems a waste not to use them for brevity.

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run make lint?
  • Have you successfully run pytest tests/unit?

Given that this file defines the helper variables:

  _SUPPORTED_PROVIDERS = ["host", "lxd", "multipass"]
  _HIDDEN_PROVIDERS = ["managed-host"]
  _ALL_PROVIDERS = _SUPPORTED_PROVIDERS + _HIDDEN_PROVIDERS

it seems a waste not to use them for brevity.

Signed-off-by: Robert P. J. Day <robert.day@canonical.com>
@rpjday
Copy link
Contributor Author

rpjday commented Apr 14, 2023

This cleanup seemed fairly straightforward, but there may be more happening here than I can see, so if this PR makes no sense, just discard it.

Copy link
Collaborator

@mr-cal mr-cal left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@mr-cal mr-cal merged commit d8d4ce0 into canonical:main Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants