Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1187)

Issue 83540043: provider/joyent/config.go: panic bug #1300846

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by jameinel
Modified:
10 years, 1 month ago
Reviewers:
mp+213805, wallyworld
Visibility:
Public.

Description

provider/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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -23 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M provider/joyent/config.go View 3 chunks +22 lines, -20 lines 0 comments Download
M provider/joyent/config_test.go View 1 5 chunks +25 lines, -3 lines 0 comments Download

Messages

Total messages: 3
jameinel
Please take a look.
10 years, 1 month ago (2014-04-02 10:37:46 UTC) #1
jameinel
Please take a look.
10 years, 1 month ago (2014-04-02 10:51:48 UTC) #2
wallyworld
10 years, 1 month ago (2014-04-02 11:51:31 UTC) #3
I tested live without a key-file attr set and looks ok. So LGTM.
I agree that we should rename the key-file parameter before landing (including
the MANTA_KEY_FILE env var)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b