Skip to content

Commit

Permalink
Handle DNS-named networks with unknown controllers, rather than 404'i…
Browse files Browse the repository at this point in the history
…ng (#89)
  • Loading branch information
ethanjli authored Sep 16, 2022
1 parent 8406d42 commit 5ebdbc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/app/fluitans/client/networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ func GetNetworks(
address := ztc.GetControllerAddress(id)
controller, err := cc.FindControllerByAddress(ctx, address)
if err != nil {
return err
// Tolerate unknown controllers by acting as if they (and their networks) don't exist
return nil
}
controllers[i] = controller

Expand Down

0 comments on commit 5ebdbc2

Please sign in to comment.