Skip to content

Commit

Permalink
Fix Operator panic on service restore (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadlil authored and tamalsaha committed Jul 3, 2017
1 parent 33381f2 commit 68fc176
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/watcher/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ func (w *Watcher) restoreResourceIfRequired(e *events.Event) {
if ok {
// Remove cluster IP
svc.Spec.ClusterIP = ""
}
if svc.Name == engress.StatsServiceName() && !engress.Stats() {
return
if svc.Name == engress.StatsServiceName() && !engress.Stats() {
return
}
}
}

Expand Down

0 comments on commit 68fc176

Please sign in to comment.