Skip to content

Revert "Make def private"#58422

Merged
dwoz merged 2 commits intosaltstack:masterfrom
major0:fix/salt_cloud_ec2_list_availability_zones
Oct 7, 2020
Merged

Revert "Make def private"#58422
dwoz merged 2 commits intosaltstack:masterfrom
major0:fix/salt_cloud_ec2_list_availability_zones

Conversation

@major0
Copy link
Copy Markdown
Contributor

@major0 major0 commented Sep 10, 2020

The list_availability_zones() function was made private in the salt-cloud ec2 driver in response to #15515
It is not clear why this function was made private in response to this
bug report.

This function is listed as publicly available in the salt-cloud feature
matrix: https://docs.saltstack.com/en/latest/topics/cloud/features.html

This function also exists publicly in aliyun and tencentcloud drivers.
Further more, the tencentcloud usage is documented in the salt(7)
man page.

This reverts commit 38c9583.

This commit fixes #58421

What does this PR do?

Reverts 38c9583

What issues does this PR fix or reference?

Fixes: #58421
Relates to #15515

Previous Behavior

salt-cloud ec2 driver's list_availability_zones() was private.

New Behavior

Makes salt-cloud ec2 driver's list_availability_zones() was public.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

No

@major0 major0 requested a review from a team as a code owner September 10, 2020 13:46
@ghost ghost requested review from waynew and removed request for a team September 10, 2020 13:46
waynew
waynew previously approved these changes Sep 10, 2020
Copy link
Copy Markdown
Contributor

@waynew waynew 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.

This doesn't seem like something that needs tests - I'll pass it by the team and see what they think!

DmitryKuzmenko
DmitryKuzmenko previously approved these changes Sep 11, 2020
@DmitryKuzmenko
Copy link
Copy Markdown
Contributor

Agree with @waynew

@dwoz dwoz added the needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases label Sep 22, 2020
@major0 major0 dismissed stale reviews from DmitryKuzmenko and waynew via effc8b0 September 24, 2020 16:04
@major0 major0 force-pushed the fix/salt_cloud_ec2_list_availability_zones branch from 2f2f6a7 to effc8b0 Compare September 24, 2020 16:04
DmitryKuzmenko
DmitryKuzmenko previously approved these changes Sep 28, 2020
@major0 major0 force-pushed the fix/salt_cloud_ec2_list_availability_zones branch from effc8b0 to 9e5e40d Compare October 1, 2020 16:47
The `list_availability_zones()` function was made private in the
salt-cloud ec2 driver in response to
saltstack#15515 It is not clear why this
function was made private in response to this bug report.

This function is listed as publicly available in the salt-cloud feature
matrix: https://docs.saltstack.com/en/latest/topics/cloud/features.html

This function also exists publicly in aliyun and tencentcloud drivers.
Further more, the tencentcloud usage is documented in the `salt(7)`
manpage.

This reverts commit 38c9583.

This commit fixes saltstack#58421
@major0 major0 force-pushed the fix/salt_cloud_ec2_list_availability_zones branch from 9e5e40d to 9096a25 Compare October 6, 2020 01:17
@DmitryKuzmenko DmitryKuzmenko removed the needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases label Oct 6, 2020
@DmitryKuzmenko
Copy link
Copy Markdown
Contributor

@dwoz this doesn't need a test case.

@sagetherage sagetherage added the Magnesium Mg release after Na prior to Al label Oct 7, 2020
@dwoz dwoz merged commit ae83788 into saltstack:master Oct 7, 2020
@major0 major0 deleted the fix/salt_cloud_ec2_list_availability_zones branch October 7, 2020 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Magnesium Mg release after Na prior to Al

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] salt-cloud -f list_availability_zones broken for ec2

5 participants