mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-10 14:43:34 +00:00
Fix create project to handle Google change (#451)
This commit is contained in:
18
src/gam.py
18
src/gam.py
@ -6634,18 +6634,20 @@ def doCreateProject(login_hint=None):
|
||||
print u'Checking project status...'
|
||||
status = callGAPI(crm.operations(), u'get', name=operation_name)
|
||||
if u'error' in status:
|
||||
if u'message' in status[u'error'] and status[u'error'][u'message'].find(u'Callers must accept ToS') != -1:
|
||||
print u'''Please go to:
|
||||
try:
|
||||
if status[u'error'][u'details'][0][u'violations'][0][u'description'] == u'Callers must accept Terms of Service':
|
||||
print u'''Please go to:
|
||||
|
||||
https://console.cloud.google.com/start
|
||||
|
||||
and accept the Terms of Service (ToS). As soon as you've accepted the ToS popup, you can return here and press enter.'''
|
||||
raw_input()
|
||||
create_again = True
|
||||
break
|
||||
else:
|
||||
print status
|
||||
sys.exit(1)
|
||||
raw_input()
|
||||
create_again = True
|
||||
break
|
||||
except (IndexError, KeyError):
|
||||
pass
|
||||
print status
|
||||
sys.exit(1)
|
||||
if u'done' in status and status[u'done']:
|
||||
break
|
||||
sleep_time = i ** 2
|
||||
|
Reference in New Issue
Block a user