-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(ssh-keys): Update ssh-keys register, show and delete to egos… #639
refactor(ssh-keys): Update ssh-keys register, show and delete to egos… #639
Conversation
Probably will be easier to format your code if you are using |
All these suggestions are suggestion and to be tested |
016d7f7
to
8203e03
Compare
Change Tested |
I run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
Change tested |
cmd/ssh_key_register.go
Outdated
err = decorateAsyncOperations(fmt.Sprintf("Registering SSH key %q...", c.Name), func() error { | ||
op, err := client.RegisterSSHKey(ctx, registerKeyRequest) | ||
if err != nil { | ||
return err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the function, we usually add more error wrapping the same way you did in this file
cmd/ssh_key_delete.go
Outdated
return decorateAsyncOperations(fmt.Sprintf("Deleting SSH key %s...", c.Name), func() error { | ||
op, err := globalstate.EgoscaleV3Client.DeleteSSHKey(ctx, c.Name) | ||
if err != nil { | ||
return err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other than the error wrapping everything looks good to me : )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thank you for the nice work!
Update ssh-keys register, show and delete to egoscale v3
Checklist
(For exoscale contributors)
Testing