mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 12:51:36 +00:00
Fix create project to handle Google change (#451)
This commit is contained in:
@@ -6634,7 +6634,8 @@ def doCreateProject(login_hint=None):
|
|||||||
print u'Checking project status...'
|
print u'Checking project status...'
|
||||||
status = callGAPI(crm.operations(), u'get', name=operation_name)
|
status = callGAPI(crm.operations(), u'get', name=operation_name)
|
||||||
if u'error' in status:
|
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:
|
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:
|
print u'''Please go to:
|
||||||
|
|
||||||
https://console.cloud.google.com/start
|
https://console.cloud.google.com/start
|
||||||
@@ -6643,7 +6644,8 @@ and accept the Terms of Service (ToS). As soon as you've accepted the ToS popup,
|
|||||||
raw_input()
|
raw_input()
|
||||||
create_again = True
|
create_again = True
|
||||||
break
|
break
|
||||||
else:
|
except (IndexError, KeyError):
|
||||||
|
pass
|
||||||
print status
|
print status
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
if u'done' in status and status[u'done']:
|
if u'done' in status and status[u'done']:
|
||||||
|
|||||||
Reference in New Issue
Block a user