Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Introduce a login retry when a user's token is expired #1955

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

thedadams
Copy link
Contributor

Additionally, a user-agent string is added to requests to manager.

Comment on lines 143 to 150
// reload config, could have changed
if newCfg, err := config.ReadCLIConfig(); err != nil {
return user, pass, err
} else {
*cfg = *newCfg
}
return user, pass, nil
Copy link
Member

@njhale njhale Jul 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// reload config, could have changed
if newCfg, err := config.ReadCLIConfig(); err != nil {
return user, pass, err
} else {
*cfg = *newCfg
}
return user, pass, nil
// reload config, could have changed
newCfg, err := config.ReadCLIConfig()
if err == nil {
*cfg = *newCfg
}
return user, pass, err

Additionally, a user-agent string is added to requests to manager.

Signed-off-by: Donnie Adams <[email protected]>
@thedadams thedadams merged commit 7afb2a4 into acorn-io:main Jul 24, 2023
@thedadams thedadams deleted the gh-m294 branch July 24, 2023 20:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants