-
Notifications
You must be signed in to change notification settings - Fork 88
CLOUDP-148788: [AtlasCLI] cutover command is using orgId instead of projectId #1543
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
Conversation
gssbzn
left a comment
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
| PreRunE: func(cmd *cobra.Command, args []string) error { | ||
| return opts.PreRunE( | ||
| opts.ValidateOrgID, | ||
| opts.ValidateProjectID, |
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.
Well done here on the prompt reply.
Not blocking: Can you do a quick audit of the other LiveMigration commands to make sure they are using the correct parameter? Patterns like this tend to happen in multiple places easily, so would be good to confirm in case it's in other places.
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.
Updated
colm-quinn
left a comment
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
edb910a
|
|
||
| func (opts *LiveMigrationsOpts) GenerateFlags(cmd *cobra.Command) { | ||
| cmd.Flags().StringVar(&opts.OrgID, flag.OrgID, "", usage.OrgID) | ||
| cmd.Flags().StringVar(&opts.ProjectID, flag.ProjectID, "", usage.ProjectID) |
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.
line 128, there's a built in feature now for that can you migrate to it
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.
Updated
Proposed changes
Jira ticket: CLOUDP-148788
Checklist
make fmtand formatted my codeFurther comments
This came out in https://jira.mongodb.org/browse/HELP-40211. The cutover command is passing the
orgIdinstead of theprojectId