Merge lp:~rvb/gwacl/media-link into lp:gwacl
Proposed by
Raphaël Badin
Status: | Merged |
---|---|
Approved by: | Raphaël Badin |
Approved revision: | 174 |
Merged at revision: | 173 |
Proposed branch: | lp:~rvb/gwacl/media-link |
Merge into: | lp:gwacl |
Diff against target: |
82 lines (+27/-4) 4 files modified
example/management/run.go (+3/-3) management_base_test.go (+0/-1) xmlobjects.go (+10/-0) xmlobjects_test.go (+14/-0) |
To merge this branch: | bzr merge lp:~rvb/gwacl/media-link |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella | Approve | ||
Review via email: mp+173899@code.launchpad.net |
Commit message
Add CreateVirtualHa
Description of the change
The main reason for this new utility is to avoid having to hardcode the Azure hostname in client applications like the Azure provider in Juju.
Drive-by fix: fix message displayed in example/
To post a comment you must log in.
Looks good.
[1]
+func CreateVirtualHa rdDiskMediaLink (StorageName, StoragePath string) string { Split(StoragePa th, "/")
+ pathComponents := strings.
I think you ought to strip leading and trailing forward-slashes first:
len(strings. Split(" /fred/" , "/")) -> 3