[kubernetes][operator][hotfix] Dictionary fix (#13663)

This commit is contained in:
Dmitri Gekhtman
2021-01-25 08:40:59 -08:00
committed by GitHub
parent f9f2bfa778
commit 79209110c5
+4 -1
View File
@@ -95,4 +95,7 @@ def get_cluster_owner_reference(
def translate(configuration: Dict[str, Any],
dictionary: Dict[str, str]) -> Dict[str, Any]:
return {dictionary[field]: configuration[field] for field in dictionary}
return {
dictionary[field]: configuration[field]
for field in dictionary if field in configuration
}