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

Issue 12512043: Obtain Azure simplestreams endpoint from gwacl. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by jtv.canonical
Modified:
10 years, 9 months ago
Reviewers:
mp+178686, dimitern, rog, jtvjtv
Visibility:
Public.

Description

Obtain Azure simplestreams endpoint from gwacl. This matches an incompatible API change in gwacl r213. It asks gwacl for the right API endpoint to pass to simplestreams (China has a different one to the rest of the world) and removes the old hard-coded URL. I also discovered to my embarrassment that getEndpoint was implemented twice: once as a method and once as a stand-alone function. The latter is all that's needed, and there's not much reason for the former. The tests turned out much simpler than originally envisaged. https://code.launchpad.net/~jtv/juju-core/az-endpoint/+merge/178686 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -58 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M environs/azure/environ.go View 4 chunks +8 lines, -14 lines 0 comments Download
M environs/azure/environ_test.go View 8 chunks +7 lines, -34 lines 0 comments Download
M environs/azure/instancetype.go View 2 chunks +7 lines, -10 lines 1 comment Download
M environs/azure/instancetype_test.go View 1 chunk +11 lines, -0 lines 2 comments Download

Messages

Total messages: 4
jtv.canonical
Please take a look.
10 years, 9 months ago (2013-08-06 08:22:20 UTC) #1
dimitern
LGTM with one question. https://codereview.appspot.com/12512043/diff/1/environs/azure/instancetype_test.go File environs/azure/instancetype_test.go (right): https://codereview.appspot.com/12512043/diff/1/environs/azure/instancetype_test.go#newcode282 environs/azure/instancetype_test.go:282: c.Check( Why Check and not ...
10 years, 9 months ago (2013-08-06 08:54:13 UTC) #2
rog
LGTM with one thought below. https://codereview.appspot.com/12512043/diff/1/environs/azure/instancetype.go File environs/azure/instancetype.go (right): https://codereview.appspot.com/12512043/diff/1/environs/azure/instancetype.go#newcode113 environs/azure/instancetype.go:113: func getEndpoint(location string) string ...
10 years, 9 months ago (2013-08-06 08:57:43 UTC) #3
jtvjtv
10 years, 9 months ago (2013-08-06 09:48:08 UTC) #4
Thanks chaps!  My answer to that question was exactly what rog said.  :-)
Sign in to reply to this message.

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