← Back to team overview

launchpad-dev team mailing list archive

ec2 land change now requires a token with authorization to write data

 

Hi there,

as some of you have noticed (hi stub :-)) the ec2 land command now
requires a oauth token authorized to write data to the merge proposal.

The change that introduced this is in r11886
"[r=mars][ui=none][bug=672519] Change ec2 land command to update the
merge proposal commit message attribute with the built commit message
with proper QA tags."

and it was done as part of the work for
https://dev.launchpad.net/Foundations/Proposals/SimplifyMergeMachinery

To get a new token, you need to remove your old token from your machine:

rm ~/.launchpadlib/api.edge.launchpad.net/credentials/launchpad-branch-lander
rm ~/.launchpadlib/api.launchpad.net/credentials/launchpad-branch-lander

and go through the "get new oauth token" workflow by running ec2 land.
At this point you'll be asked what permission you want to give the
token. Choose the write/read everything option.

Once you're sure ec2 land is working correctly, by adding the commit
message to the merge proposal with the qa tags, you can revoke the old
launchpad-branch-lander tokens at
https://launchpad.net/people/+me/+oauth-tokens

I'm writing this instructions from memory so I'm probably getting some
terms wrong/different from what you get in the UI, so feel free to
ping me on IRC if you need help.

Sorry for the inconvenience.

Cheers,
-- 
Diogo M. Matsubara



Follow ups