mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 14:21:26 -07:00
Use a python3 compatible notation for octal (#2238)
This commit is contained in:
parent
24a08d350a
commit
d7ac2a8499
3 changed files with 4 additions and 4 deletions
|
@ -568,7 +568,7 @@ def create_script(command):
|
|||
f.close()
|
||||
|
||||
# Ensure the script is executable.
|
||||
os.chmod(script_file, 0700)
|
||||
os.chmod(script_file, int('0700',8))
|
||||
|
||||
# Output log file.
|
||||
stdout_file = os.fdopen(tempfile.mkstemp(prefix='lxc-attach-script-log')[0], 'ab')
|
||||
|
@ -1371,7 +1371,7 @@ class LxcContainerManagement(object):
|
|||
:type source_dir: ``str``
|
||||
"""
|
||||
|
||||
old_umask = os.umask(0077)
|
||||
old_umask = os.umask(int('0077',8))
|
||||
|
||||
archive_path = self.module.params.get('archive_path')
|
||||
if not os.path.isdir(archive_path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue