From 79209110c50dddd4e3f722aa6f22733151140818 Mon Sep 17 00:00:00 2001 From: Dmitri Gekhtman <62982571+DmitriGekhtman@users.noreply.github.com> Date: Mon, 25 Jan 2021 08:40:59 -0800 Subject: [PATCH] [kubernetes][operator][hotfix] Dictionary fix (#13663) --- python/ray/operator/operator_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/ray/operator/operator_utils.py b/python/ray/operator/operator_utils.py index 08afda94f..5d51baebb 100644 --- a/python/ray/operator/operator_utils.py +++ b/python/ray/operator/operator_utils.py @@ -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 + }