File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
cmd/deployment/elasticsearch/instances Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -68,13 +68,11 @@ Set the cluster instance to 3x of its current capacity:
68
68
storageMultiplier , _ := cmd .Flags ().GetUint8 ("storage-multiplier" )
69
69
value , _ := cmd .Flags ().GetUint16 ("value" )
70
70
reset , _ := cmd .Flags ().GetBool ("reset" )
71
+ force , _ := cmd .Flags ().GetBool ("force" )
71
72
72
73
if multiplier > 0 || value > 0 || reset {
73
- if ! cmdutil .ConfirmAction (
74
- "WARNING: changing instance capacity incurs a rolling restart, do you want to continue? [n/y]: " ,
75
- os .Stdin ,
76
- os .Stdout ,
77
- ) {
74
+ msg := "WARNING: changing instance capacity incurs a rolling restart, do you want to continue? [n/y]: "
75
+ if ! force && ! cmdutil .ConfirmAction (msg , os .Stdin , os .Stdout ) {
78
76
return nil
79
77
}
80
78
}
You can’t perform that action at this time.
0 commit comments