Skip to content

Commit

Permalink
quick fix default network flag is not empty string anymore but has de…
Browse files Browse the repository at this point in the history
…fault value
  • Loading branch information
Gregor Gololicic committed Apr 20, 2021
1 parent d4fb2b0 commit a4d880c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a4d880c

Please sign in to comment.