diff --git a/bootstrap-daemon/pvcbootstrapd/lib/hooks.py b/bootstrap-daemon/pvcbootstrapd/lib/hooks.py index 0d7ebde..3b68145 100755 --- a/bootstrap-daemon/pvcbootstrapd/lib/hooks.py +++ b/bootstrap-daemon/pvcbootstrapd/lib/hooks.py @@ -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()