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

Unified Diff: environs/manual/provisioner.go

Issue 95150043: environs/manual: use old AddMAchines API
Patch Set: environs/manual: use old AddMAchines API Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « [revision details] ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: environs/manual/provisioner.go
=== modified file 'environs/manual/provisioner.go'
--- environs/manual/provisioner.go 2014-04-07 10:05:04 +0000
+++ environs/manual/provisioner.go 2014-05-08 10:06:11 +0000
@@ -130,7 +130,10 @@
func recordMachineInState(
client *api.Client, machineParams params.AddMachineParams) (machineId string, err error) {
- results, err := client.AddMachines([]params.AddMachineParams{machineParams})
+ // Note: we explicitly use AddMachines1dot18 rather than AddMachines to preserve
+ // backwards compatibility; we do not require any of the new features of AddMachines
+ // here.
+ results, err := client.AddMachines1dot18([]params.AddMachineParams{machineParams})
if err != nil {
return "", err
}
« no previous file with comments | « [revision details] ('k') | no next file » | no next file with comments »

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