From be1ac652ac97f42bf85d413ddb9464561f25c889 Mon Sep 17 00:00:00 2001 From: Romeo Dumitrescu Date: Sun, 9 Jan 2022 15:18:53 +0200 Subject: [PATCH] Fix wrong reference when updating direct mirrors (#252) --- src/ES.Kubernetes.Reflector/Core/Mirroring/ResourceMirror.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ES.Kubernetes.Reflector/Core/Mirroring/ResourceMirror.cs b/src/ES.Kubernetes.Reflector/Core/Mirroring/ResourceMirror.cs index 1cdeaa6..2f1d219 100644 --- a/src/ES.Kubernetes.Reflector/Core/Mirroring/ResourceMirror.cs +++ b/src/ES.Kubernetes.Reflector/Core/Mirroring/ResourceMirror.cs @@ -219,7 +219,7 @@ private async Task HandleUpsert(TResource resource, WatchEventType eventType, Ca ReflectorProperties sourceProperties; if (!_propertiesCache.TryGetValue(sourceRef, out var sourceProps)) { - var source = await TryResourceGet(resourceRef); + var source = await TryResourceGet(sourceRef); if (source is null) { Logger.LogWarning("Could not update {id} - Source {sourceId} could not be found.",