Make sure mode is set as integer

This commit is contained in:
Joshua Boniface 2022-07-07 20:19:04 +00:00
parent 5c2653395d
commit 0ca705ddd9
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, dmode)
tc.chmod(dfile, int(dmode))
tc.close()