From bfbf42ab86fad4f183c4ace927c59a5d86c3b66c Mon Sep 17 00:00:00 2001 From: 88lex Date: Sat, 25 Jul 2020 14:19:06 +0800 Subject: [PATCH] temp swap back to run_console --- safire/lib/utils.py | 3 ++- safire/safire | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/safire/lib/utils.py b/safire/lib/utils.py index 237be04..dc07bea 100644 --- a/safire/lib/utils.py +++ b/safire/lib/utils.py @@ -144,6 +144,7 @@ class Auth: creds.refresh(Request()) else: flow = InstalledAppFlow.from_client_secrets_file(credentials[0], scopes) - creds = flow.run_local_server() + # creds = flow.run_local_server() + creds = flow.run_console() with open(token, "wb") as tkn: pickle.dump(creds, tkn) diff --git a/safire/safire b/safire/safire index ca102b4..04a0230 100755 --- a/safire/safire +++ b/safire/safire @@ -21,7 +21,7 @@ from lib.utils import * class Commands: - """safire creates projects, service accounts(SAs), json keys for SAs and to add SAs as group members.\n Type -h + """safire creates projects, service accounts(SAs), json keys for SAs and adds SAs as group members.\n Type -h or --help after any command for info. Usage: './safire list projects' or 'safire add members mygroup@domain.com' Most commands accept a 'filter'to process subsets. If no filter all items are listed."""