~dstroppa/juju-core/joyent-provider-storage

« back to all changes in this revision

Viewing changes to provider/maas/environ.go

  • Committer: Daniele Stroppa
  • Date: 2014-01-08 15:58:10 UTC
  • mfrom: (1953.1.231 juju-core)
  • Revision ID: daniele.stroppa@joyent.com-20140108155810-xecbwrqkb5i0fyoe
Merging trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
}
78
78
 
79
79
// Bootstrap is specified in the Environ interface.
80
 
func (env *maasEnviron) Bootstrap(cons constraints.Value) error {
81
 
        return common.Bootstrap(env, cons)
 
80
func (env *maasEnviron) Bootstrap(ctx environs.BootstrapContext, cons constraints.Value) error {
 
81
        return common.Bootstrap(ctx, env, cons)
82
82
}
83
83
 
84
84
// StateInfo is specified in the Environ interface.
238
238
        if node, tools, err := environ.acquireNode(cons, possibleTools); err != nil {
239
239
                return nil, nil, fmt.Errorf("cannot run instances: %v", err)
240
240
        } else {
241
 
                inst = &maasInstance{&node, environ}
 
241
                inst = &maasInstance{maasObject: &node, environ: environ}
242
242
                machineConfig.Tools = tools
243
243
        }
244
244
        defer func() {