Merge pull request #3207 from quay/project/gen-sec-key

Add the service key creation to config tool
This commit is contained in:
Sam Chow 2018-08-16 16:48:15 -04:00 committed by GitHub
commit ec14007268
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 1480 additions and 137 deletions

View file

@ -145,7 +145,7 @@ def set_key_expiration(kid, expiration_date):
service_key.save()
def approve_service_key(kid, approver, approval_type, notes=''):
def approve_service_key(kid, approval_type, approver=None, notes=''):
try:
with db_transaction():
key = db_for_update(ServiceKey.select().where(ServiceKey.kid == kid)).get()