~bac/juju-core/get-endpoints

« back to all changes in this revision

Viewing changes to environs/openstack/provider.go

  • Committer: William Reade
  • Author(s): William Reade
  • Date: 2013-03-19 10:30:08 UTC
  • mfrom: (1005.2.3 juju-core)
  • Revision ID: fwereade@gmail.com-20130319103008-wp3laoo158guhkyq
cmd/juju: bootstrap accepts --constraints

...and passes them on to environs.Bootstrap, which passes them on to
Environ.Bootstrap. Only the dummy provider actually handles constraints
at the moment -- so we can test the bootstrap command -- all the others
will be implemented in followups.

R=dimitern, jameinel, dfc, thumper
CC=
https://codereview.appspot.com/7610048

Show diffs side-by-side

added added

removed removed

Lines of Context:
416
416
        return e.publicStorageUnlocked
417
417
}
418
418
 
419
 
func (e *environ) Bootstrap(uploadTools bool, cert, key []byte) error {
 
419
func (e *environ) Bootstrap(cons state.Constraints, uploadTools bool, cert, key []byte) error {
 
420
        // TODO(fwereade): handle bootstrap constraints
420
421
        password := e.Config().AdminSecret()
421
422
        if password == "" {
422
423
                return fmt.Errorf("admin-secret is required for bootstrap")