From 0ca705ddd99d4b68ed40afbf0205d3d30ed4ea86 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 7 Jul 2022 20:19:04 +0000 Subject: [PATCH] Make sure mode is set as integer --- 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 09df1e3..39e43e3 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, dmode) + tc.chmod(dfile, int(dmode)) tc.close()