Change multiple match cli output

This commit is contained in:
Alex Dadgar
2016-01-06 15:08:47 -08:00
parent a5b9aae792
commit 012db31100
6 changed files with 6 additions and 6 deletions

View File

@@ -90,7 +90,7 @@ func (c *AllocStatusCommand) Run(args []string) int {
alloc.DesiredStatus,
alloc.ClientStatus)
}
c.Ui.Output(fmt.Sprintf("Please disambiguate the desired allocation\n\n%s", formatList(out)))
c.Ui.Output(fmt.Sprintf("Prefix matched multiple allocations\n\n%s", formatList(out)))
return 0
}
// Prefix lookup matched a single allocation

View File

@@ -203,7 +203,7 @@ func (m *monitor) monitor(evalID string) int {
eval.TriggeredBy,
eval.Status)
}
m.ui.Output(fmt.Sprintf("Please disambiguate the desired evaluation\n\n%s", formatList(out)))
m.ui.Output(fmt.Sprintf("Prefix matched multiple evaluations\n\n%s", formatList(out)))
return 0
}
// Prefix lookup matched a single evaluation

View File

@@ -97,7 +97,7 @@ func (c *NodeDrainCommand) Run(args []string) int {
node.Status)
}
// Dump the output
c.Ui.Output(fmt.Sprintf("Please disambiguate the desired node\n\n%s", formatList(out)))
c.Ui.Output(fmt.Sprintf("Prefix matched multiple nodes\n\n%s", formatList(out)))
return 0
}
// Prefix lookup matched a single node

View File

@@ -126,7 +126,7 @@ func (c *NodeStatusCommand) Run(args []string) int {
node.Status)
}
// Dump the output
c.Ui.Output(fmt.Sprintf("Please disambiguate the desired node\n\n%s", formatList(out)))
c.Ui.Output(fmt.Sprintf("Prefix matched multiple nodes\n\n%s", formatList(out)))
return 0
}
// Prefix lookup matched a single node

View File

@@ -114,7 +114,7 @@ func (c *StatusCommand) Run(args []string) int {
job.Priority,
job.Status)
}
c.Ui.Output(fmt.Sprintf("Please disambiguate the desired job\n\n%s", formatList(out)))
c.Ui.Output(fmt.Sprintf("Prefix matched multiple jobs\n\n%s", formatList(out)))
return 0
}
// Prefix lookup matched a single job

View File

@@ -86,7 +86,7 @@ func (c *StopCommand) Run(args []string) int {
job.Priority,
job.Status)
}
c.Ui.Output(fmt.Sprintf("Please disambiguate the desired job\n\n%s", formatList(out)))
c.Ui.Output(fmt.Sprintf("Prefix matched multiple jobs\n\n%s", formatList(out)))
return 0
}
// Prefix lookup matched a single job