Merge lp:~jtv/gwacl/storage-keys into lp:gwacl
Status: | Merged |
---|---|
Approved by: | Jeroen T. Vermeulen |
Approved revision: | 74 |
Merged at revision: | 75 |
Proposed branch: | lp:~jtv/gwacl/storage-keys |
Merge into: | lp:gwacl |
Diff against target: |
75 lines (+47/-0) 2 files modified
managementapi.go (+16/-0) managementapi_test.go (+31/-0) |
To merge this branch: | bzr merge lp:~jtv/gwacl/storage-keys |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raphaël Badin (community) | Approve | ||
Review via email: mp+156105@code.launchpad.net |
Commit message
Support retrieval of a storage account's access keys.
Description of the change
This was a very straightforward job. I also ran a live test by editing the live management-API example to retrieve the keys, and running it against the real Azure service.
However I didn't bother adding the operation permanently to the live example because, while it would serve relatively little purpose when all the hard parts are in reusable code that's already covered, the change would have had to be right in a spot where we're making important changes.
I'm already expecting a small semantic conflict: this branch uses composeURL, and another branch I have proposed turns that function into a method.
Jeroen
Looks good.
[0]
51 + body := fmt.Sprintf( `<StorageServic e>
52 + <Url>%s</Url>
I think the first line should be two lines:
body := fmt.Sprintf(
`<StorageService>
this way, the XML is more readable (if there is such thing as readable XML) because it appears as a "block".