Descriptionprovider/joyent/config.go: panic bug #1300846
When key-file wasn't set, it defaults to either the MANTA_KEY_FILE
environment variable or "~/.ssh/id_rsa". We then use the contents of
key-file to populate the "private-key" setting (which is the actual
contents of the file).
I wonder if we should actually have it named "private-key-path" to
match how other config variables are done.
Anyway, this just moves when we populate private-key. So instead of
populating it in "prepare" we do it in "validate" right after we've
ensured we have valid "key-file" contents.
I have not tested this live, because I don't have a Joyent account, but
the local tests all pass.
https://code.launchpad.net/~jameinel/juju-core/1.18-nil-key-file-1300846/+merge/213805
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : provider/joyent/config.go: panic bug #1300846 #
MessagesTotal messages: 3
|