Add umask option for mount module

This commit is contained in:
satken2 2021-06-28 12:44:04 +09:00
parent f765706b85
commit 58452777b4

View file

@ -811,7 +811,6 @@ def main():
except ValueError as e:
module.fail_json(msg="umask must be an octal integer: %s" % (to_native(e)))
old_umask = os.umask(umask)
os.umask(umask)
try:
# Something like mkdir -p but with the possibility to undo.