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

Issue 30330043: Fix lp:1250154 1.16 compatibility EnvironmentGet (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by dimitern
Modified:
11 years, 3 months ago
Reviewers:
mp+196124, rog
Visibility:
Public.

Description

Fix lp:1250154 1.16 compatibility EnvironmentGet In updateSecrets now we skip the rest of the checks after we discover EnvironmentGet is not implemented in the API server (when talking to an older, 1.16 server for example). This fixes all the CLI commands that call NewAPIConnFromName to work against older servers. https://code.launchpad.net/~dimitern/juju-core/204-lp-1250154-updatesecrets-1.16-compat/+merge/196124 Requires: https://code.launchpad.net/~dimitern/juju-core/203-lp-1253628-upgrade-juju-1.16-compat/+merge/196118 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix lp:1250154 1.16 compatibility EnvironmentGet #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M juju/api.go View 1 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 3
dimitern
Please take a look.
11 years, 3 months ago (2013-11-21 14:49:25 UTC) #1
rog
LGTM with two minor suggestions below. https://codereview.appspot.com/30330043/diff/1/juju/api.go File juju/api.go (right): https://codereview.appspot.com/30330043/diff/1/juju/api.go#newcode80 juju/api.go:80: if err != ...
11 years, 3 months ago (2013-11-21 15:13:52 UTC) #2
dimitern
11 years, 3 months ago (2013-11-21 15:24:01 UTC) #3
Please take a look.

https://codereview.appspot.com/30330043/diff/1/juju/api.go
File juju/api.go (right):

https://codereview.appspot.com/30330043/diff/1/juju/api.go#newcode80
juju/api.go:80: if err != nil && params.IsNoSuchRequest(err) {
On 2013/11/21 15:13:53, rog wrote:
> if params.IsNoSuchRequest(err) {
>    ...
>    return nil
> }
> if err != nil {
>     return err
> }
> 
> looks slightly better perhaps?

Done.

https://codereview.appspot.com/30330043/diff/1/juju/api.go#newcode83
juju/api.go:83: logger.Infof("running in 1.16 compatibility mode; skipping
checks for secrets")
On 2013/11/21 15:13:53, rog wrote:
> s/Infof/Warningf/ ?
> s/skipping checks for secrets/connection may fail if environment is just
> bootstrapped/ ?

Done.
Sign in to reply to this message.

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