Skip to content

Commit

Permalink
Merge pull request moby#27980 from allencloud/change-description-in-n…
Browse files Browse the repository at this point in the history
…ode-rm-force-flag

node rm can be applied on not only active node
  • Loading branch information
vdemeester authored Nov 2, 2016
2 parents 197befe + 002262d commit 5e5c7d5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6176,7 +6176,7 @@ paths:
required: true
- name: "force"
in: "query"
description: "Force remove an active node"
description: "Force remove a node from the swarm"
default: false
type: "boolean"
tags:
Expand Down
2 changes: 1 addition & 1 deletion cli/command/node/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func newRemoveCommand(dockerCli *command.DockerCli) *cobra.Command {
},
}
flags := cmd.Flags()
flags.BoolVar(&opts.force, "force", false, "Force remove an active node")
flags.BoolVar(&opts.force, "force", false, "Force remove a node from the swarm")
return cmd
}

Expand Down
2 changes: 1 addition & 1 deletion contrib/completion/zsh/_docker
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ __docker_node_subcommand() {
(rm|remove)
_arguments $(__docker_arguments) \
$opts_help \
"($help)--force[Force remove an active node]" \
"($help)--force[Force remove a node from the swarm]" \
"($help -)*:node:__docker_complete_pending_nodes" && ret=0
;;
(demote)
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/api/docker_remote_api_v1.24.md
Original file line number Diff line number Diff line change
Expand Up @@ -4064,7 +4064,7 @@ Remove a node [`id`] from the swarm.
**Query parameters**:
- **force** - 1/True/true or 0/False/false, Force remove an active node.
- **force** - 1/True/true or 0/False/false, Force remove a node from the swarm.
Default `false`.
**Status codes**:
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/api/docker_remote_api_v1.25.md
Original file line number Diff line number Diff line change
Expand Up @@ -4589,7 +4589,7 @@ Remove a node [`id`] from the swarm.
**Query parameters**:
- **force** - 1/True/true or 0/False/false, Force remove an active node.
- **force** - 1/True/true or 0/False/false, Force remove a node from the swarm.
Default `false`.
**Status codes**:
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/commandline/node_rm.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Aliases:
rm, remove

Options:
--force Force remove an active node
--force Force remove a node from the swarm
--help Print usage
```

Expand Down

0 comments on commit 5e5c7d5

Please sign in to comment.