Skip to content

Commit

Permalink
remove unnecessary gce serviceaccounts assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
zshihang committed Feb 14, 2020
1 parent 9659f28 commit 3686731
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apitools/base/py/credentials_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,6 @@ def _ScopesFromMetadataServer(self, scopes):
if not util.DetectGce():
raise exceptions.ResourceUnavailableError(
'GCE credentials requested outside a GCE instance')
if not self.GetServiceAccount(self.__service_account_name):
raise exceptions.ResourceUnavailableError(
'GCE credentials requested but service account '
'%s does not exist.' % self.__service_account_name)
if scopes:
scope_ls = util.NormalizeScopes(scopes)
instance_scopes = self.GetInstanceScopes()
Expand Down

0 comments on commit 3686731

Please sign in to comment.