Fix bad integer/string in base convert

This commit is contained in:
Joshua Boniface 2020-08-28 01:08:48 -04:00
parent 423da08f5f
commit 7ce1bfd930
1 changed files with 1 additions and 1 deletions

View File

@ -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))