From 866661d49156dc688e69c88b9a440cdd7f35f020 Mon Sep 17 00:00:00 2001 From: Janosh Riebesell Date: Tue, 9 Apr 2024 10:46:19 +0200 Subject: [PATCH] missed another variable clash --- custodian/ansible/actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custodian/ansible/actions.py b/custodian/ansible/actions.py index 87163d9a..b555f896 100644 --- a/custodian/ansible/actions.py +++ b/custodian/ansible/actions.py @@ -135,8 +135,8 @@ def rename(input_dict, settings, directory=None) -> None: directory (None): dummy parameter for compatibility with FileActions """ for key, val in settings.items(): - if val := input_dict.pop(key, None): - input_dict[val] = val + if input_val := input_dict.pop(key, None): + input_dict[val] = input_val @staticmethod def add_to_set(input_dict, settings, directory=None) -> None: