From 705548b1832f491230e957c76ab77f599347d0c5 Mon Sep 17 00:00:00 2001 From: "alvaro.gonzalez" Date: Thu, 29 Aug 2024 08:46:31 +0300 Subject: [PATCH] Add better fix --- src/tesk_core/taskmaster.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tesk_core/taskmaster.py b/src/tesk_core/taskmaster.py index 8f81631..c7a7ee6 100755 --- a/src/tesk_core/taskmaster.py +++ b/src/tesk_core/taskmaster.py @@ -33,7 +33,8 @@ def run_executor(executor, namespace, pvc=None): if 'limits' not in container['resources'].keys(): container['resources']['limits'] = None if container['resources']['limits'] is None and \ - container['resources']['requests'] is not None: + ('requests' in container['resources'].keys() and \ + container['resources']['requests'] is not None): container['resources']['limits'] = container['resources']['requests'] if pvc is not None: