Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
66b67e59
Commit
66b67e59
authored
9 years ago
by
Diptanu Choudhury
Browse files
Options
Download
Email Patches
Plain Diff
Fixes the logic for node drain confirmation prompt
parent
23fc2f89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
command/node_drain.go
+1
-1
command/node_drain.go
with
1 addition
and
1 deletion
+1
-1
command/node_drain.go
+
1
-
1
View file @
66b67e59
...
@@ -137,7 +137,7 @@ func (c *NodeDrainCommand) Run(args []string) int {
...
@@ -137,7 +137,7 @@ func (c *NodeDrainCommand) Run(args []string) int {
// No case
// No case
c
.
Ui
.
Output
(
"Canceling drain toggle"
)
c
.
Ui
.
Output
(
"Canceling drain toggle"
)
return
0
return
0
}
else
if
strings
.
ToLower
(
answer
)[
0
]
==
'y'
{
}
else
if
strings
.
ToLower
(
answer
)[
0
]
==
'y'
&&
len
(
answer
)
>
1
{
// Non exact match yes
// Non exact match yes
c
.
Ui
.
Output
(
"For confirmation, an exact ‘y’ is required."
)
c
.
Ui
.
Output
(
"For confirmation, an exact ‘y’ is required."
)
return
0
return
0
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help