Fix bad octal conversion

This commit is contained in:
Joshua Boniface 2022-07-07 23:29:51 -04:00
parent 8201535b5b
commit bdf72f90c5
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ def run_hook_copy(config, targets, args):
sfile = f"{config['ansible_path']}/{sfile}"
tc = c.open_sftp()
tc.put(sfile, dfile)
tc.chmod(dfile, int(dmode))
tc.chmod(dfile, int(dmode, 8))
tc.close()