drivers/exoscale: fix configuration of exoscale endpoint

The environment variable was `EXOSCALE_ENDPOINT` but the flag was
`--exoscale-url`. When configuring from flags, the wrong name was
used. Therefore, a user was unable to use an alternate endpoint.

Signed-off-by: Vincent Bernat <Vincent.Bernat@exoscale.ch>
This commit is contained in:
Vincent Bernat 2016-02-03 16:25:28 +01:00
parent 985ca0de70
commit 7a56ddb054
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ func (d *Driver) DriverName() string {
} }
func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error { func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error {
d.URL = flags.String("exoscale-endpoint") d.URL = flags.String("exoscale-url")
d.APIKey = flags.String("exoscale-api-key") d.APIKey = flags.String("exoscale-api-key")
d.APISecretKey = flags.String("exoscale-api-secret-key") d.APISecretKey = flags.String("exoscale-api-secret-key")
d.InstanceProfile = flags.String("exoscale-instance-profile") d.InstanceProfile = flags.String("exoscale-instance-profile")