mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Fixing up some non-py3 things for unit tests
This commit is contained in:
@@ -169,7 +169,7 @@ def add_host_key(module, fqdn, key_type="rsa", create_dir=False):
|
||||
if not os.path.exists(user_ssh_dir):
|
||||
if create_dir:
|
||||
try:
|
||||
os.makedirs(user_ssh_dir, 0700)
|
||||
os.makedirs(user_ssh_dir, 0o700)
|
||||
except:
|
||||
module.fail_json(msg="failed to create host key directory: %s" % user_ssh_dir)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user