Skip to content

Commit

Permalink
Have reasonable default for the private key location.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbockelm committed Feb 8, 2019
1 parent 0135b69 commit 8dcb68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion credmon/CredentialMonitors/LocalCredmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, *args, **kwargs):
self.authz_template = "read:/user/{username} write:/user/{username}"
self.token_lifetime = 60*20
if htcondor != None:
self._private_key_location = htcondor.param.get('LOCAL_CREDMON_PRIVATE_KEY', None)
self._private_key_location = htcondor.param.get('LOCAL_CREDMON_PRIVATE_KEY', "/etc/condor/scitokens-private.pem")
if self._private_key_location != None and os.path.exists(self._private_key_location):
with open(self._private_key_location, 'r') as private_key:
self._private_key = private_key.read()
Expand Down

0 comments on commit 8dcb68c

Please sign in to comment.