Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11296 from hpidcock/fix-1860083
#11296 ## Description of change Minor refactor to cleanup branch logic for distribution groups for AZs. The actual fix was in dropping the FilterZones method as it was relying on improper slice expectations. The append mutates the array, the correct way would have been a nil array. Go only returns a new underlying array for an append operation when the array capacity is increased. See https://play.golang.org/p/gUuDY0y1sqa for an example. ## QA steps Follow the steps in the bug. ## Documentation changes N/A ## Bug reference https://bugs.launchpad.net/juju/+bug/1860083
- Loading branch information
Showing
2 changed files
with
155 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters