change url to client

This commit is contained in:
sasha 2020-07-23 18:41:38 +03:00
parent 4fa0c395df
commit 2980010e63
2 changed files with 7 additions and 1 deletions

View File

@ -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:

6
command/ui_test.go Normal file
View File

@ -0,0 +1,6 @@
package command
fucn TestUiCommand(t *testing.T) {
ui := new(cli.MockUi)
}