mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 10:51:24 -07:00
Initial cleanup of file module
* Remove use of six.b as Python-2.6+ have byte literals. * Make AnsibleModule a global object so we'll have access to it in all the functions we're going to break this up into. * Rework the parameters so things that are in file_common_args are used from file_common_args or the reason for deviation is documented. * Remove validate as a parameter: this should be taken care of by removing it from params before the copy and template action plugin invoke file. * Rename diff_peek to _diff_peek as it is an internal parameter. * add module_name execute_module call to assemble so that it is more greppable
This commit is contained in:
parent
d994595660
commit
6b6c4914d2
4 changed files with 21 additions and 17 deletions
|
@ -229,7 +229,7 @@ FILE_COMMON_ARGUMENTS = dict(
|
|||
|
||||
# The following are not about perms and should not be in a rewritten file_common_args
|
||||
src=dict(), # Maybe dest or path would be appropriate but src is not
|
||||
follow=dict(type='bool', default=False), # Maybe follow is appropriate because it determines whether to follow symlinks for permission purposes too
|
||||
follow=dict(type='bool', default=False), # Maybe follow is appropriate because it determines whether to follow symlinks for permission purposes too
|
||||
force=dict(type='bool'),
|
||||
|
||||
# not taken by the file module, but other action plugins call the file module so this ignores
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue