https://codereview.appspot.com/62400043/diff/10001/environs/config.go#newcode267
environs/config.go:267: func ValidateConfig(oldConfig *config.Config,
args map[string]interface{}) (newProviderConfig *config.Config, err
error) {
This doesn't look quite right to me. I think it should just have the
same signature as EnvironProvider.Validate.
https:/ /codereview. appspot. com/62400043/ diff/10001/ environs/ config. go
File environs/config.go (right):
https:/ /codereview. appspot. com/62400043/ diff/10001/ environs/ config. go#newcode267 config. go:267: func ValidateConfig( oldConfig *config.Config, interface{ }) (newProviderConfig *config.Config, err .Validate.
environs/
args map[string]
error) {
This doesn't look quite right to me. I think it should just have the
same signature as EnvironProvider
https:/ /codereview. appspot. com/62400043/ diff/10001/ environs/ config. go#newcode273 config. go:273: env, err := New(oldConfig) Provider( ).
environs/
This is way overkill for getting a provider. Instead, just get the
provider type from the config and use environs.
https:/ /codereview. appspot. com/62400043/ diff/10001/ state/apiserver /client/ client. go /client/ client. go (right):
File state/apiserver
https:/ /codereview. appspot. com/62400043/ diff/10001/ state/apiserver /client/ client. go#newcode787 /client/ client. go:787: //Make new config by applying
state/apiserver
config args to oldConfig and validating via environ provider specific
validator
I don't think this comment is worthwhile. It's just restating what
ValidateConfig says it does.
https:/ /codereview. appspot. com/62400043/ diff/10001/ state/apiserver /keymanager/ keymanager. go /keymanager/ keymanager. go (right):
File state/apiserver
https:/ /codereview. appspot. com/62400043/ diff/10001/ state/apiserver /keymanager/ keymanager. go#newcode143 /keymanager/ keymanager. go:143: //Make new config by
state/apiserver
applying config args to currentConfig and validating via environ
provider specific validator
ditto
https:/ /codereview. appspot. com/62400043/