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: