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

Issue 50090044: Add the environment name to the hooks context.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by frankban
Modified:
10 years, 2 months ago
Reviewers:
dimitern, mp+204450
Visibility:
Public.

Description

Add the environment name to the hooks context. Expose the human friendly environment name to the hooks through the JUJU_ENV_NAME environment variable. This is required e.g. by the GUI in order to give to the user a hint about where to find the password to log in. https://code.launchpad.net/~frankban/juju-core/env-name-in-context/+merge/204450 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 10

Patch Set 2 : Add the environment name to the hooks context. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -37 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M doc/charms-in-action.txt View 1 chunk +1 line, -0 lines 0 comments Download
M state/api/params/internal.go View 1 2 chunks +9 lines, -1 line 0 comments Download
M state/api/uniter/environ.go View 1 1 chunk +9 lines, -18 lines 0 comments Download
M state/api/uniter/environ_test.go View 2 chunks +15 lines, -7 lines 0 comments Download
M state/api/uniter/uniter.go View 1 1 chunk +32 lines, -1 line 0 comments Download
M state/apiserver/uniter/uniter.go View 1 1 chunk +11 lines, -0 lines 0 comments Download
M state/apiserver/uniter/uniter_test.go View 1 1 chunk +13 lines, -0 lines 0 comments Download
M state/environ.go View 1 chunk +5 lines, -0 lines 0 comments Download
M state/environ_test.go View 1 chunk +4 lines, -0 lines 0 comments Download
M worker/uniter/context.go View 3 chunks +7 lines, -2 lines 0 comments Download
M worker/uniter/context_test.go View 5 chunks +7 lines, -2 lines 0 comments Download
M worker/uniter/uniter.go View 3 chunks +5 lines, -6 lines 0 comments Download

Messages

Total messages: 4
frankban
Please take a look.
10 years, 2 months ago (2014-02-03 10:58:42 UTC) #1
dimitern
LGTM with a few suggestions below. Nice! https://codereview.appspot.com/50090044/diff/1/state/api/params/internal.go File state/api/params/internal.go (right): https://codereview.appspot.com/50090044/diff/1/state/api/params/internal.go#newcode115 state/api/params/internal.go:115: // environment. ...
10 years, 2 months ago (2014-02-03 11:20:12 UTC) #2
frankban
Please take a look. https://codereview.appspot.com/50090044/diff/1/state/api/params/internal.go File state/api/params/internal.go (right): https://codereview.appspot.com/50090044/diff/1/state/api/params/internal.go#newcode115 state/api/params/internal.go:115: // environment. On 2014/02/03 11:20:12, ...
10 years, 2 months ago (2014-02-03 12:04:46 UTC) #3
frankban
10 years, 2 months ago (2014-02-03 12:06:54 UTC) #4
Thank you!
Sign in to reply to this message.

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