We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 411ac9a commit 4c686beCopy full SHA for 4c686be
gcloud/_helpers.py
@@ -50,6 +50,7 @@
50
(?P<nanos>\d{1,9}) # nanoseconds, maybe truncated
51
Z # Zulu
52
""", re.VERBOSE)
53
+_PROJECT_KEY = 'project = '
54
55
56
class _LocalStack(Local):
@@ -191,8 +192,8 @@ def _default_service_project_id():
191
192
gcloud_project_conf = gcloud_project_conf.split('\n')
193
194
for key in gcloud_project_conf:
- if key.startswith('project = '):
195
- return key[10:]
+ if key.startswith(_PROJECT_KEY):
196
+ return key[len(_PROJECT_KEY):]
197
198
return None
199
0 commit comments