From 7286f20877074002daaada495e7e595a5051b034 Mon Sep 17 00:00:00 2001 From: allencloud Date: Sat, 2 Jul 2016 23:18:58 +0800 Subject: [PATCH] fix typo in err msg from ambigious to ambiguous Signed-off-by: allencloud Upstream-commit: c6cbdad7296a09afd6f2c5e5a7572d64fda5bf6e Component: engine --- components/engine/daemon/cluster/cluster.go | 2 +- components/engine/daemon/cluster/helpers.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/engine/daemon/cluster/cluster.go b/components/engine/daemon/cluster/cluster.go index 7241cd4711..b670afc8d5 100644 --- a/components/engine/daemon/cluster/cluster.go +++ b/components/engine/daemon/cluster/cluster.go @@ -1031,7 +1031,7 @@ func getNetwork(ctx context.Context, c swarmapi.ControlClient, input string) (*s } if l := len(rl.Networks); l > 1 { - return nil, fmt.Errorf("network %s is ambigious (%d matches found)", input, l) + return nil, fmt.Errorf("network %s is ambiguous (%d matches found)", input, l) } return rl.Networks[0], nil diff --git a/components/engine/daemon/cluster/helpers.go b/components/engine/daemon/cluster/helpers.go index bb9e10f1f5..be5bf56e87 100644 --- a/components/engine/daemon/cluster/helpers.go +++ b/components/engine/daemon/cluster/helpers.go @@ -42,7 +42,7 @@ func getNode(ctx context.Context, c swarmapi.ControlClient, input string) (*swar } if l := len(rl.Nodes); l > 1 { - return nil, fmt.Errorf("node %s is ambigious (%d matches found)", input, l) + return nil, fmt.Errorf("node %s is ambiguous (%d matches found)", input, l) } return rl.Nodes[0], nil @@ -70,7 +70,7 @@ func getService(ctx context.Context, c swarmapi.ControlClient, input string) (*s } if l := len(rl.Services); l > 1 { - return nil, fmt.Errorf("service %s is ambigious (%d matches found)", input, l) + return nil, fmt.Errorf("service %s is ambiguous (%d matches found)", input, l) } return rl.Services[0], nil @@ -99,7 +99,7 @@ func getTask(ctx context.Context, c swarmapi.ControlClient, input string) (*swar } if l := len(rl.Tasks); l > 1 { - return nil, fmt.Errorf("task %s is ambigious (%d matches found)", input, l) + return nil, fmt.Errorf("task %s is ambiguous (%d matches found)", input, l) } return rl.Tasks[0], nil