-
Notifications
You must be signed in to change notification settings - Fork 71
map prompt for duplicate creation #222
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
@@ -76,6 +77,13 @@ func NewCreateVolumeTask(curveadm *cli.CurveAdm, cc *configure.ClientConfig) (*t | |||
subname := fmt.Sprintf("hostname=%s image=%s", hc.GetHostname(), cc.GetContainerImage()) | |||
t := task.NewTask("Create Volume", subname, hc.GetSSHConfig()) | |||
|
|||
if len(cc.GetContainerImage()) == 0 { |
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.
Actually, there is a default value for client container image, so maybe it's an useless branch. AND:
- you should add a step to do checking, maybe
step.Lamba
is a good choice. - what is the purpose of those changes.
if err != nil { | ||
return t, nil | ||
} | ||
} else { |
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 prompt based on the actual volume size and the expected, rather than the container image.
@mfordjody anything changed? |
I am currently unable to conduct testing because I have encountered the above situation @caoxianfei1 |
you can delete the container and retry it. |
map prompt for duplicate creation Signed-off-by: mfordjody <[email protected]> commented code Signed-off-by: mfordjody <[email protected]> restore commit add image status
Requires longer modification time |
No description provided.