From 9b02a7a90eee1b8688a1876f83f19763d6f2cbec Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Thu, 21 Jul 2016 19:40:47 +0900 Subject: [PATCH] Fix nomad run parse error --- command/run.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/run.go b/command/run.go index 66bdd4125..76f95a638 100644 --- a/command/run.go +++ b/command/run.go @@ -109,7 +109,7 @@ func (c *RunCommand) Run(args []string) int { length = fullId } - // Check that we got exactly one node + // Check that we got exactly one argument args = flags.Args() if len(args) != 1 { c.Ui.Error(c.Help()) @@ -140,7 +140,7 @@ func (c *RunCommand) Run(args []string) int { // Parse the JobFile job, err := jobspec.Parse(f) if err != nil { - c.Ui.Error(fmt.Sprintf("Error parsing job file %s: %v", f, err)) + c.Ui.Error(fmt.Sprintf("Error parsing job file %s: %v", path, err)) return 1 }