~rogpeppe/juju-core/azure

« back to all changes in this revision

Viewing changes to environs/ec2/config.go

  • Committer: Gustavo Niemeyer
  • Date: 2012-07-16 18:42:23 UTC
  • mto: This revision was merged to the branch mainline in revision 304.
  • Revision ID: gustavo@niemeyer.net-20120716184223-n2cvpifx4x50ftxm
ConfigĀ 3000.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        },
40
40
)
41
41
 
42
 
func (p environProvider) NewConfig(config map[string]interface{}) (cfg environs.EnvironConfig, err error) {
43
 
        v, err := configChecker.Coerce(config, nil)
 
42
func (e *environ) newConfig(config *config.Config) (*providerConfig, err error) {
 
43
        // TODO Change this so it relies on config.TypeMap() instead.
 
44
        v, err := configChecker.Coerce(config.Map(), nil)
44
45
        if err != nil {
45
46
                return nil, err
46
47
        }