From 2b66e28fc2e6c43ff5113931a74803ad98b9934e Mon Sep 17 00:00:00 2001 From: absolutelightning Date: Thu, 31 Aug 2023 16:42:27 +0530 Subject: [PATCH] fix CI --- command/snapshot/save/snapshot_save.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/snapshot/save/snapshot_save.go b/command/snapshot/save/snapshot_save.go index 5ac9427c7c72..99350a947b3f 100644 --- a/command/snapshot/save/snapshot_save.go +++ b/command/snapshot/save/snapshot_save.go @@ -73,7 +73,7 @@ func (c *cmd) Run(args []string) int { appendFileNameFlags := strings.Split(c.appendFileNameFlag.String(), ",") - if len(appendFileNameFlags) != 0 { + if len(appendFileNameFlags) != 0 && len(c.appendFileNameFlag.String()) > 0 { agentSelfResponse, err := client.Agent().Self() if err != nil { c.UI.Error(fmt.Sprintf("Error connecting to Consul agent and fetching datacenter/version: %s", err))