Skip to content

Commit

Permalink
allow reauth for openstack client
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaab committed Oct 30, 2020
1 parent 65e127c commit 9cad2b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions util/pkg/vfs/swiftfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ func NewSwiftClient() (*gophercloud.ServiceClient, error) {
return nil, err
}

authOption.AllowReauth = true

pc, err := openstack.NewClient(authOption.IdentityEndpoint)
if err != nil {
return nil, fmt.Errorf("error building openstack provider client: %v", err)
Expand Down Expand Up @@ -145,6 +143,7 @@ func (oc OpenstackConfig) GetCredential() (gophercloud.AuthOptions, error) {
if env.ApplicationCredentialID != "" && env.Username == "" {
env.Scope = &gophercloud.AuthScope{}
}
env.AllowReauth = true
return env, nil

}
Expand Down

0 comments on commit 9cad2b1

Please sign in to comment.