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

[BUG] FutureWarning is displayed for unused cloud providers #62845

Closed
slaway opened this issue Oct 10, 2022 · 1 comment · Fixed by #62921
Closed

[BUG] FutureWarning is displayed for unused cloud providers #62845

slaway opened this issue Oct 10, 2022 · 1 comment · Fixed by #62921
Assignees
Labels
Bug broken, incorrect, or confusing behavior Deprecation needs-triage

Comments

@slaway
Copy link

slaway commented Oct 10, 2022

Description
I'm getting warnings about providers being deprecated that I am not using on every salt-cloud run.

Steps to Reproduce the behavior
Run any salt-cloud command with another provider than azurearm or msazure configured.

My current cloud.providers contain only one entry using driver: ec2. No other provider configuration exists.

# salt-cloud -f list_nodes foo-provider
/opt/saltstack/salt/run/salt/cloud/clouds/azurearm.py:174: FutureWarning: This cloud provider will be removed from
Salt in version 3007 due to the deprecation of the 'Classic' API for Azure. Please migrate to Azure Resource Manage
r by March 1, 2023 (https://docs.microsoft.com/en-us/azure/virtual-machines/classic-vm-deprecation)
  salt.utils.versions.warn_until(
/opt/saltstack/salt/run/salt/cloud/clouds/msazure.py:113: FutureWarning: This cloud provider will be removed from S
alt in version 3007 due to the deprecation of the 'Classic' API for Azure. Please migrate to Azure Resource Manager
 by March 1, 2023 (https://docs.microsoft.com/en-us/azure/virtual-machines/classic-vm-deprecation)
  salt.utils.versions.warn_until(
(...)

Expected behavior
Do not show deprecation warnings for providers I am not using.

Versions Report

# salt-cloud --version
salt-cloud 3005.1               
@slaway slaway added Bug broken, incorrect, or confusing behavior needs-triage labels Oct 10, 2022
@welcome
Copy link

welcome bot commented Oct 10, 2022

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Deprecation needs-triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants