Fix bad octal conversion
This commit is contained in:
parent
8201535b5b
commit
bdf72f90c5
|
@ -214,7 +214,7 @@ def run_hook_copy(config, targets, args):
|
||||||
sfile = f"{config['ansible_path']}/{sfile}"
|
sfile = f"{config['ansible_path']}/{sfile}"
|
||||||
tc = c.open_sftp()
|
tc = c.open_sftp()
|
||||||
tc.put(sfile, dfile)
|
tc.put(sfile, dfile)
|
||||||
tc.chmod(dfile, int(dmode))
|
tc.chmod(dfile, int(dmode, 8))
|
||||||
tc.close()
|
tc.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue