Commit 964cebb0 authored by Darren Shepherd's avatar Darren Shepherd

Don't return object because double update might revert IP change

parent 2c398c5d
...@@ -109,7 +109,9 @@ func (h *handler) onChange(svc *core.Service) (runtime.Object, error) { ...@@ -109,7 +109,9 @@ func (h *handler) onChange(svc *core.Service) (runtime.Object, error) {
return svc, err return svc, err
} }
return h.updateService(svc) // Don't return service because we don't want another update
_, err := h.updateService(svc)
return nil, err
} }
func (h *handler) updateService(svc *core.Service) (runtime.Object, error) { func (h *handler) updateService(svc *core.Service) (runtime.Object, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment