From 3b81afb62629409618f26501b5b3988aca57f4d3 Mon Sep 17 00:00:00 2001 From: Eero Aaltonen Date: Sun, 15 Mar 2026 21:49:58 +0200 Subject: [PATCH] fixup address pycodestyle complaints, use ansible style --- plugins/action/pgp_keyring.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/plugins/action/pgp_keyring.py b/plugins/action/pgp_keyring.py index 42b5abc868..cee06aec4e 100644 --- a/plugins/action/pgp_keyring.py +++ b/plugins/action/pgp_keyring.py @@ -32,10 +32,11 @@ class ActionModule(ActionBase): task_vars = dict() validation_result, new_module_args = self.validate_argument_spec( - argument_spec = {'src': {'required': True, 'type': 'str'}, - 'dest': {'required': True, 'type': 'str'}, - 'follow': {'type': 'bool', 'default': False} - } + argument_spec=dict( + src=dict(type='str', required=True), + dest=dict(type='str', required=True), + follow=dict(type='bool', default=False) + ) ) super(ActionModule, self).run(tmp, task_vars) @@ -75,7 +76,8 @@ class ActionModule(ActionBase): ), ) # call with ansible.legacy prefix to eliminate collisions with collections while still allowing local override - copy_action = self._shared_loader_obj.action_loader.get('ansible.legacy.copy', + copy_action = self._shared_loader_obj.action_loader.get( + 'ansible.legacy.copy', task=new_task, connection=self._connection, play_context=self._play_context,