openstack: fix client when using env variables (#4734)

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2018-10-17 16:04:07 +02:00 committed by GitHub
parent 9c5370fdfe
commit 5824d6902d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ func NewDiscovery(conf *SDConfig, l log.Logger) (Discovery, error) {
DomainID: conf.DomainID, DomainID: conf.DomainID,
} }
} }
client, err := openstack.NewClient(conf.IdentityEndpoint) client, err := openstack.NewClient(opts.IdentityEndpoint)
if err != nil { if err != nil {
return nil, err return nil, err
} }