Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelightning committed Aug 31, 2023
1 parent c7971c9 commit 2b66e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/snapshot/save/snapshot_save.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2b66e28

Please sign in to comment.