Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ $ scw inspect myserver | jq '.[0].public_ip.address'

### master (unreleased)

* No entry
* `scw login` don't ask to upload ssh key when there is no keys

View full [commits list](https://github.com/scaleway/scaleway-cli/compare/v1.8.0...master)

Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ type LoginArgs struct {

// selectKey allows to choice a key in ~/.ssh
func selectKey(args *LoginArgs) error {
fmt.Println("Do you want to upload an SSH key ?")
home, err := config.GetHomeDir()
if err != nil {
return err
Expand All @@ -52,6 +51,7 @@ func selectKey(args *LoginArgs) error {
if len(pubs) == 0 {
return nil
}
fmt.Println("Do you want to upload an SSH key ?")
fmt.Println("[0] I don't want to upload a key !")
for i := range pubs {
fmt.Printf("[%d] %s\n", i+1, pubs[i])
Expand Down