Skip to content

Commit 3686731

Browse files
committed
remove unnecessary gce serviceaccounts assertion
1 parent 9659f28 commit 3686731

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

apitools/base/py/credentials_lib.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,6 @@ def _ScopesFromMetadataServer(self, scopes):
337337
if not util.DetectGce():
338338
raise exceptions.ResourceUnavailableError(
339339
'GCE credentials requested outside a GCE instance')
340-
if not self.GetServiceAccount(self.__service_account_name):
341-
raise exceptions.ResourceUnavailableError(
342-
'GCE credentials requested but service account '
343-
'%s does not exist.' % self.__service_account_name)
344340
if scopes:
345341
scope_ls = util.NormalizeScopes(scopes)
346342
instance_scopes = self.GetInstanceScopes()

0 commit comments

Comments
 (0)