1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 05:09:12 +00:00

fixup address pycodestyle complaints, use ansible style

This commit is contained in:
Eero Aaltonen 2026-03-15 21:49:58 +02:00
parent e6ee55be8f
commit 3b81afb626

View file

@ -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,