From 7ce1bfd93032f7832bdd39ff9909af83d5540790 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 28 Aug 2020 01:08:48 -0400 Subject: [PATCH] Fix bad integer/string in base convert --- client-cli/pvc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-cli/pvc.py b/client-cli/pvc.py index b236dcf7..c205b118 100755 --- a/client-cli/pvc.py +++ b/client-cli/pvc.py @@ -125,7 +125,7 @@ def update_store(store_path, store_data): with open(store_file, 'w') as fh: fh.write(json.dumps(store_data, sort_keys=True, indent=4)) # Ensure file has sensible permissions due to API key storage, but only when created! - os.chmod(store_file, int(os.environ.get('PVC_CLIENT_DB_PERMS', 600), 8)) + os.chmod(store_file, int(os.environ.get('PVC_CLIENT_DB_PERMS', '600'), 8)) else: with open(store_file, 'w') as fh: fh.write(json.dumps(store_data, sort_keys=True, indent=4))