From b86c08cc443b9320bb2f8e5f6136e499634d66fc Mon Sep 17 00:00:00 2001 From: Marek Czernek Date: Thu, 31 Oct 2024 10:53:13 +0100 Subject: [PATCH] Enhance error handling in transactional_update module --- salt/modules/transactional_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/transactional_update.py b/salt/modules/transactional_update.py index d6915475f5..32e1eb9cc4 100644 --- a/salt/modules/transactional_update.py +++ b/salt/modules/transactional_update.py @@ -984,7 +984,7 @@ def call(function, *args, **kwargs): return local.get("return", local) else: return local - except ValueError: + except (ValueError, AttributeError): return {"result": False, "retcode": 1, "comment": ret_stdout} finally: # Check if reboot is needed