From ae09df69b61ffa847d71b903c068893c2847cda4 Mon Sep 17 00:00:00 2001 From: Chris Bednarski Date: Mon, 14 Dec 2015 17:46:52 -0800 Subject: [PATCH] Check length 0 (no configs) instead of 1 (some configs) --- command/agent/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/command.go b/command/agent/command.go index aed67aeb6..4ec51a5fc 100644 --- a/command/agent/command.go +++ b/command/agent/command.go @@ -356,7 +356,7 @@ func (c *Command) Run(args []string) int { } // Log config files - if len(config.Files) > 1 { + if len(config.Files) > 0 { c.Ui.Info(fmt.Sprintf("Loaded configuration from %s", strings.Join(config.Files, ", "))) } else { c.Ui.Info("No configuration files loaded")