mirror of https://github.com/hashicorp/consul
fix CI
parent
c7971c9884
commit
2b66e28fc2
|
@ -73,7 +73,7 @@ func (c *cmd) Run(args []string) int {
|
||||||
|
|
||||||
appendFileNameFlags := strings.Split(c.appendFileNameFlag.String(), ",")
|
appendFileNameFlags := strings.Split(c.appendFileNameFlag.String(), ",")
|
||||||
|
|
||||||
if len(appendFileNameFlags) != 0 {
|
if len(appendFileNameFlags) != 0 && len(c.appendFileNameFlag.String()) > 0 {
|
||||||
agentSelfResponse, err := client.Agent().Self()
|
agentSelfResponse, err := client.Agent().Self()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.UI.Error(fmt.Sprintf("Error connecting to Consul agent and fetching datacenter/version: %s", err))
|
c.UI.Error(fmt.Sprintf("Error connecting to Consul agent and fetching datacenter/version: %s", err))
|
||||||
|
|
Loading…
Reference in New Issue