From bdf72f90c55bd40c0791dd1693062304aafbf872 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 7 Jul 2022 23:29:51 -0400 Subject: [PATCH] Fix bad octal conversion --- bootstrap-daemon/pvcbootstrapd/lib/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()