-
Notifications
You must be signed in to change notification settings - Fork 46
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
chore: Updated metal-go client for sub-command twofa #334
Conversation
return nil | ||
} | ||
|
||
otpURI, _, err := c.Service.SeedApp() |
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.
Is this subcommand no longer needed? Or is it removed because the endpoints/operations used here are not in the spec?
If we still need to support this subcommand, a short-term workaround might be to find a way to convert the other 2fa subcommands to metal-go while leaving this one on packngo.
@@ -48,12 +49,13 @@ func (c *Client) Enable() *cobra.Command { | |||
|
|||
cmd.SilenceUsage = true | |||
if sms { | |||
_, err := c.Service.EnableSms(token) | |||
_, err := c.Service.EnableTfaSms(context.Background()).Execute() |
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.
Do we need to be able to pass in the token? Is this a spec issue that needs to be fixed?
/assign @aayushrangwala |
Closing in favor of #353 |
Breakout from #270
What this PR does / why we need it:
This PR replaces packngo with metal-go for all interactions with the Equinix Metal API specifically for twofa subcommands