mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-31 05:19:09 -07:00
Rename original_basename parameter in various file-related modules
original_basename is a private internal parameter so name it _original_basename to reflect that it is internal.
This commit is contained in:
parent
cd4d0069ba
commit
20b9ca6e7c
9 changed files with 45 additions and 58 deletions
|
@ -39,7 +39,7 @@ from ansible.utils.hashing import checksum
|
|||
# Supplement the FILE_COMMON_ARGUMENTS with arguments that are specific to file
|
||||
# FILE_COMMON_ARGUMENTS contains things that are not arguments of file so remove those as well
|
||||
REAL_FILE_ARGS = frozenset(FILE_COMMON_ARGUMENTS.keys()).union(
|
||||
('state', 'path', 'original_basename', 'recurse', 'force',
|
||||
('state', 'path', '_original_basename', 'recurse', 'force',
|
||||
'_diff_peek', 'src')).difference(
|
||||
('content', 'decrypt', 'backup', 'remote_src', 'regexp', 'delimiter',
|
||||
'directory_mode', 'unsafe_writes'))
|
||||
|
@ -304,7 +304,7 @@ class ActionModule(ActionBase):
|
|||
dict(
|
||||
src=tmp_src,
|
||||
dest=dest,
|
||||
original_basename=source_rel,
|
||||
_original_basename=source_rel,
|
||||
follow=follow
|
||||
)
|
||||
)
|
||||
|
@ -338,7 +338,7 @@ class ActionModule(ActionBase):
|
|||
new_module_args.update(
|
||||
dict(
|
||||
dest=dest,
|
||||
original_basename=source_rel,
|
||||
_original_basename=source_rel,
|
||||
recurse=False,
|
||||
state='file',
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue