From 36945620bc7d82abae2cf76de69c5804f593ed5a Mon Sep 17 00:00:00 2001 From: sasha Date: Thu, 23 Jul 2020 18:41:38 +0300 Subject: [PATCH] change url to client --- command/ui.go | 2 +- command/ui_test.go | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 command/ui_test.go diff --git a/command/ui.go b/command/ui.go index 8a6c42615..a4f0435a0 100644 --- a/command/ui.go +++ b/command/ui.go @@ -148,7 +148,7 @@ func (c *UiCommand) Run(args []string) int { switch match { case contexts.Nodes: - url.Path = fmt.Sprintf("ui/nodes/%s", fullID) + url.Path = fmt.Sprintf("ui/clients/%s", fullID) case contexts.Allocs: url.Path = fmt.Sprintf("ui/allocations/%s", fullID) case contexts.Jobs: diff --git a/command/ui_test.go b/command/ui_test.go new file mode 100644 index 000000000..f258f118f --- /dev/null +++ b/command/ui_test.go @@ -0,0 +1,6 @@ +package command + + +fucn TestUiCommand(t *testing.T) { + ui := new(cli.MockUi) +} \ No newline at end of file