rename config values to remove "Quay" (#1431)

This commit is contained in:
Jimmy Zelinskie 2016-05-03 13:11:21 -04:00
parent e502f50c88
commit f842545b3e
2 changed files with 7 additions and 8 deletions

View file

@ -11,7 +11,7 @@ class ServiceKeyWorker(Worker):
def __init__(self):
super(ServiceKeyWorker, self).__init__()
self.add_operation(self._refresh_service_keys,
app.config.get('QUAY_SERVICE_KEY_REFRESH', 60)*60)
app.config.get('INSTANCE_SERVICE_KEY_REFRESH', 60)*60)
def _refresh_service_keys(self):
"""
@ -20,7 +20,7 @@ class ServiceKeyWorker(Worker):
with open("/conf/quay.kid") as f:
kid = f.read()
minutes_until_expiration = app.config.get('QUAY_SERVICE_KEY_EXPIRATION', 120)
minutes_until_expiration = app.config.get('INSTANCE_SERVICE_KEY_EXPIRATION', 120)
expiration = timedelta(minutes=minutes_until_expiration)
logger.debug('Starting refresh of automatic service keys')