Skip to content

Commit

Permalink
NetworkConnect does not respect discretion. (#252)
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Hepworth <karl.hepworth@gmail.com>
  • Loading branch information
fubarhouse committed Aug 19, 2020
1 parent 74734ee commit 1040c91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion service/library/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ func Up(c Config) {
if s := NetworkConnect(Network, name); s == nil {
fmt.Printf("Successfully connected %v to %v\n", name, Network)
} else {
fmt.Printf("Could not connect %v to %v\n", name, Network)
discrete, _ := service.GetFieldBool("discrete")
if !discrete {
fmt.Printf("Could not connect %v to %v\n", name, Network)
}
}
} else {
fmt.Printf("Already connected %v to %v\n", name, Network)
Expand Down

0 comments on commit 1040c91

Please sign in to comment.