mirror of https://github.com/docker/cli.git
fix nits in comments
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
3e7dca7900
commit
4e68d651b3
|
@ -37,7 +37,7 @@ func runUnlock(dockerCli *command.DockerCli, opts unlockOptions) error {
|
||||||
client := dockerCli.Client()
|
client := dockerCli.Client()
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
// First see if the node is actually part of a swarm, and if it's is actually locked first.
|
// First see if the node is actually part of a swarm, and if it is actually locked first.
|
||||||
// If it's in any other state than locked, don't ask for the key.
|
// If it's in any other state than locked, don't ask for the key.
|
||||||
info, err := client.Info(ctx)
|
info, err := client.Info(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue