Commit 67a13c81 authored by Daniele Venzano's avatar Daniele Venzano

Fix typo

parent f1211ab7
......@@ -51,7 +51,6 @@ class BaseAuthenticator:
elif user.auth_source == "pam" and pam_authenticate(username, password):
return user
else:
log.error('Unknown auth source {} for user {}, cannot authenticate'.format(user.auth_source, user.username))
return None
......
......@@ -147,7 +147,7 @@ def quota_ls_cmd(api: ZoeAPI, args):
if 'name' in args:
filters['name'] = args.name
quotas = api.quota.list(filters)
tabular_data = [[q['id'], q['name'], q['concurrent_executions'], q['memory'], q['cores'], quota['runtime_limit']] for q in sorted(quotas, key=lambda x: x['id'])]
tabular_data = [[q['id'], q['name'], q['concurrent_executions'], q['memory'], q['cores'], q['runtime_limit']] for q in sorted(quotas, key=lambda x: x['id'])]
headers = ['ID', 'Name', 'Conc. Executions', 'Memory', 'Cores', 'Runtime limit (h)']
print(tabulate(tabular_data, headers))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment