Skip to content

fix(ext-plugin): when token is stale, refresh token and try again#4345

Merged
spacewander merged 2 commits into
apache:masterfrom
spacewander:retok
Jun 1, 2021
Merged

fix(ext-plugin): when token is stale, refresh token and try again#4345
spacewander merged 2 commits into
apache:masterfrom
spacewander:retok

Conversation

@spacewander

Copy link
Copy Markdown
Member

Signed-off-by: spacewander [email protected]

What this PR does / why we need it:

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@spacewander
spacewander marked this pull request as ready for review May 31, 2021 11:34
if code then
return code, body
end

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why is there a blank line here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

To make the return easy to find.

return
end

if not core.string.find(err, "conf token not found") then

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we use code to determine this, I'm not sure

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes

@spacewander
spacewander merged commit 619ac84 into apache:master Jun 1, 2021
@spacewander
spacewander deleted the retok branch June 1, 2021 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants