Merge pull request #8576 from a-robinson/svc

Fix misordered assignment in service controller
pull/6/head
Dawn Chen 2015-05-21 09:38:08 -07:00
commit b5c1098cb6
1 changed files with 1 additions and 1 deletions

View File

@ -177,9 +177,9 @@ func (s *ServiceController) processDelta(delta *cache.Delta) (error, bool) {
if !ok {
return fmt.Errorf("Service %s not in cache even though the watcher thought it was. Ignoring the deletion.", key), notRetryable
}
namespacedName = types.NamespacedName{service.Namespace, service.Name}
service = cachedService.service
delta.Object = cachedService.service
namespacedName = types.NamespacedName{service.Namespace, service.Name}
} else {
namespacedName.Namespace = service.Namespace
namespacedName.Name = service.Name