tshinn@ubuntu-vm:~$ snapcraft register-key test-key
Enter your Ubuntu One e-mail address and password.
If you do not have an Ubuntu One account, you can create one at https://snapcraft.io/account
Email: <email address hidden>
Password:
Second-factor auth: xxxxxx
Registering key ...
Key registration failed: This account-key-request is already registered. This means that the account-key is likely already registered. If not then the solution might be to register a different key or to try sending a newer revision of the account-key-request for this key: invalid revision: could not add assertion (revision 0 is already the current revision)
tshinn@ubuntu-vm:~$
But the error message could be improved: "This account-key-request is already registered. This means that the account-key is likely already registered."
Looks like this bug has been fixed:
tshinn@ubuntu-vm:~$ snapcraft register-key test-key /snapcraft. io/account
Enter your Ubuntu One e-mail address and password.
If you do not have an Ubuntu One account, you can create one at https:/
Email: <email address hidden>
Password:
Second-factor auth: xxxxxx
Registering key ...
Key registration failed: This account-key-request is already registered. This means that the account-key is likely already registered. If not then the solution might be to register a different key or to try sending a newer revision of the account-key-request for this key: invalid revision: could not add assertion (revision 0 is already the current revision)
tshinn@ubuntu-vm:~$
But the error message could be improved: "This account-key-request is already registered. This means that the account-key is likely already registered."