From a4d880cdeae70b178d94740cefe78af0f1db7855 Mon Sep 17 00:00:00 2001 From: Gregor Gololicic Date: Tue, 20 Apr 2021 16:32:12 +0200 Subject: [PATCH] quick fix default network flag is not empty string anymore but has default value --- internal/command/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/command/command.go b/internal/command/command.go index fe56982e2..fb2cd2d40 100644 --- a/internal/command/command.go +++ b/internal/command/command.go @@ -218,7 +218,7 @@ func resolveHost(proj *project.Project, hostFlag string, networkFlag string) (st return hostFlag, nil } // network flag with project initialized is next - if networkFlag != "" && proj != nil { + if proj != nil { check := proj.NetworkByName(networkFlag) if check == nil { return "", fmt.Errorf("network with name %s does not exist in configuration", networkFlag)