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:
parent
e6ee55be8f
commit
3b81afb626
1 changed files with 7 additions and 5 deletions
|
|
@ -32,10 +32,11 @@ class ActionModule(ActionBase):
|
||||||
task_vars = dict()
|
task_vars = dict()
|
||||||
|
|
||||||
validation_result, new_module_args = self.validate_argument_spec(
|
validation_result, new_module_args = self.validate_argument_spec(
|
||||||
argument_spec = {'src': {'required': True, 'type': 'str'},
|
argument_spec=dict(
|
||||||
'dest': {'required': True, 'type': 'str'},
|
src=dict(type='str', required=True),
|
||||||
'follow': {'type': 'bool', 'default': False}
|
dest=dict(type='str', required=True),
|
||||||
}
|
follow=dict(type='bool', default=False)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
super(ActionModule, self).run(tmp, task_vars)
|
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
|
# 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,
|
task=new_task,
|
||||||
connection=self._connection,
|
connection=self._connection,
|
||||||
play_context=self._play_context,
|
play_context=self._play_context,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue