openstack: fix client when using env variables (#4734)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
parent
9c5370fdfe
commit
5824d6902d
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue