Skip to content

Commit e15d7ee

Browse files
authored
Merge pull request #183 from askarsabyrov/master
terraform: make field AuthOpts public
2 parents 7695289 + 50086da commit e15d7ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

terraform/auth/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type Config struct {
5151
DelayedAuth bool
5252
AllowReauth bool
5353
OsClient *gophercloud.ProviderClient
54-
authOpts *gophercloud.AuthOptions
54+
AuthOpts *gophercloud.AuthOptions
5555
authenticated bool
5656
authFailed error
5757
swClient *gophercloud.ServiceClient
@@ -211,7 +211,7 @@ func (c *Config) LoadAndValidate() error {
211211
}
212212
}
213213

214-
c.authOpts = ao
214+
c.AuthOpts = ao
215215
c.OsClient = client
216216

217217
return nil
@@ -230,7 +230,7 @@ func (c *Config) Authenticate() error {
230230
}
231231

232232
if !c.authenticated {
233-
if err := openstack.Authenticate(c.OsClient, *c.authOpts); err != nil {
233+
if err := openstack.Authenticate(c.OsClient, *c.AuthOpts); err != nil {
234234
c.authFailed = err
235235
return err
236236
}

0 commit comments

Comments
 (0)