scaleway-cli
scaleway-cli copied to clipboard
Don't upload an existing ssh public key
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Command attempted
scw init
Expected Behavior
When
We found an SSH key in ~/.ssh/id_ed25519.pub. Do you want to add it to your Scaleway account? (Y/n): y
if the found ssh key has already been uploaded and named in the web console, don't uploaded a second time.
Actual Behavior
The scw init was successful but I now have two identical ssh keys (with different ids):

More info
ubuntu 22.02
scw version
Version 2.4.0
BuildDate 2021-10-28T08:36:16
GoVersion go1.17.2
GitBranch new-release
GitCommit e7f4f094
GoArch amd64
GoOS linux