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
set volume
does not work with --local
#332
set volume
does not work with --local
#332
Conversation
A local option should exit, not continue. Without the exit we double print the object we are modifying instead of simply exiting.
When `--local` is set `info.Mapping` is nil, which causes panics in the command. Use the external patches method and remove the old helper that no longer works, and fix places in the error path where we assume mapping is present. This was missed when the upstream changed.
/retest |
/assign @soltysh |
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
@@ -494,6 +494,7 @@ func (o *VolumeOptions) RunVolume() error { | |||
return err | |||
} | |||
} | |||
return nil |
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.
We should drop similar lines few lines below, I'll handle that in a followup.
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.
Done in #349
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: smarterclayton, soltysh The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
When
--local
is setinfo.Mapping
is nil, which causes panics in thecommand. Use the external patches method and remove the old helper that no
longer works, and fix places in the error path where we assume mapping is
present. This was missed when the upstream changed.
Also fix bug where --local causes the object to be printed twice.
Needs a test/cmd test