mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
copy: pylint and docs (#30847)
This PR includes; - pylint fixes - Documentation updates
This commit is contained in:
parent
e365085644
commit
a6415f9ad9
1 changed files with 4 additions and 4 deletions
|
@ -55,7 +55,7 @@ options:
|
||||||
if the destination does not exist.
|
if the destination does not exist.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: 'yes'
|
||||||
aliases: [ "thirsty" ]
|
aliases: [ thirsty ]
|
||||||
version_added: "1.1"
|
version_added: "1.1"
|
||||||
directory_mode:
|
directory_mode:
|
||||||
description:
|
description:
|
||||||
|
@ -88,8 +88,8 @@ extends_documentation_fragment:
|
||||||
- validate
|
- validate
|
||||||
- decrypt
|
- decrypt
|
||||||
author:
|
author:
|
||||||
- "Ansible Core Team"
|
- Ansible Core Team
|
||||||
- "Michael DeHaan"
|
- Michael DeHaan
|
||||||
notes:
|
notes:
|
||||||
- The M(copy) module recursively copy facility does not scale to lots (>hundreds) of files.
|
- The M(copy) module recursively copy facility does not scale to lots (>hundreds) of files.
|
||||||
For alternative, see M(synchronize) module, which is a wrapper around C(rsync).
|
For alternative, see M(synchronize) module, which is a wrapper around C(rsync).
|
||||||
|
@ -252,7 +252,7 @@ def adjust_recursive_directory_permissions(pre_existing_dir, new_directory_list,
|
||||||
Walk the new directories list and make sure that permissions are as we would expect
|
Walk the new directories list and make sure that permissions are as we would expect
|
||||||
'''
|
'''
|
||||||
|
|
||||||
if len(new_directory_list) > 0:
|
if new_directory_list:
|
||||||
working_dir = os.path.join(pre_existing_dir, new_directory_list.pop(0))
|
working_dir = os.path.join(pre_existing_dir, new_directory_list.pop(0))
|
||||||
directory_args['path'] = working_dir
|
directory_args['path'] = working_dir
|
||||||
changed = module.set_fs_attributes_if_different(directory_args, changed)
|
changed = module.set_fs_attributes_if_different(directory_args, changed)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue