Make sure mode is set as integer
This commit is contained in:
parent
5c2653395d
commit
0ca705ddd9
|
@ -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, dmode)
|
||||
tc.chmod(dfile, int(dmode))
|
||||
tc.close()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue