Skip to content
Snippets Groups Projects
Commit 391b7e1c authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

made UD manager reject if network si not healthy

parent 312a925f
Branches
Tags
No related merge requests found
...@@ -49,6 +49,11 @@ type Manager struct { ...@@ -49,6 +49,11 @@ type Manager struct {
// updated NDF is available and will error if one is not. // updated NDF is available and will error if one is not.
func NewManager(client *api.Client)(*Manager, error){ func NewManager(client *api.Client)(*Manager, error){
if !client.GetHealth().IsHealthy(){
return nil, errors.New("cannot start UD Manager when network " +
"is not healthy")
}
m := &Manager{ m := &Manager{
client: client, client: client,
comms: client.GetComms(), comms: client.GetComms(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment