-
Notifications
You must be signed in to change notification settings - Fork 0
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 juju#16596 from manadart/2.9-fix-bad-clouds-panic
juju#16596 This linked bug describes a situation where poorly formed YAML for local cloud definitions results in a panic. The solution is simple - just use plain structs instead of pointers. This allows us to get serendipitous fall-back to zero values instead of panics for nil references. ## QA steps - Test (for regression) that you can bootstrap to one of the clouds defined in _~/.local/share/juju/clouds.yaml_. - Back-up your the _clouds.yaml_ file. - Replace the contents of _clouds.yaml_ with: ``` clouds: manual-cloud: type: manual endpoint: [email protected] ``` - `juju bootstrap manual-cloud manual` - An error will result, but there will be no panic. ## Links **Launchpad bug:** https://pad.lv/2039322 **Jira card:** JUJU-4975
- Loading branch information
Showing
2 changed files
with
22 additions
and
10 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