From 2c830686055a7c9dfa3e061a2e59a980b054a8ae Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Wed, 24 Aug 2022 17:53:57 +0000 Subject: [PATCH] enable user invite scope by default --- src/gam/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 201ec4fe..aa0ece77 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -777,8 +777,9 @@ def checkConnection(): success_count = 0 for host in hosts: try_count += 1 - check_line = f'Checking {host} ({try_count}/{host_count})...' - sys.stdout.write(f'{check_line:<60}') + ip = socket.gethostbyname(host) + check_line = f'Checking {host} ({ip}) ({try_count}/{host_count})...' + sys.stdout.write(f'{check_line:<80}') sys.stdout.flush() try: httpc.request(f'https://{host}/', 'HEAD', headers=headers) @@ -10593,7 +10594,6 @@ OAUTH2_SCOPES = [ 'name': 'Cloud Identity - User Invitations', 'subscopes': ['readonly'], 'scopes': 'https://www.googleapis.com/auth/cloud-identity.userinvitations', - 'offByDefault': True, }, { 'name': 'Contact Delegation',