Skip to content

Commit

Permalink
missed another variable clash
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Apr 9, 2024
1 parent 6f45839 commit 866661d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custodian/ansible/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 866661d

Please sign in to comment.