Skip to content

Commit

Permalink
Merge 9b4feaa into 5bf54d4
Browse files Browse the repository at this point in the history
  • Loading branch information
BinamB committed Aug 7, 2020
2 parents 5bf54d4 + 9b4feaa commit 7fbe083
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions fence/blueprints/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def post(self):

if len(project_access) > config["SERVICE_ACCOUNT_LIMIT"]:
raise UserError(
"Project access limited to {}. You added {}".format(
config["SERVICE_ACCOUNT_LIMIT"], len(project_access)
"Exceeded Allowable Number of Projects. Maximum {} Projects allowed per account.".format(
config["SERVICE_ACCOUNT_LIMIT"]
)
)

Expand Down Expand Up @@ -364,9 +364,9 @@ def post(self, id_):
project_access = payload.get("project_access")

if len(project_access) > config["SERVICE_ACCOUNT_LIMIT"]:
raise UserError(
"Project access limited to {}. You added {}".format(
config["SERVICE_ACCOUNT_LIMIT"], len(project_access)
return UserError(
"Exceeded Allowable Number of Projects. Maximum {} Projects allowed per account.".format(
config["SERVICE_ACCOUNT_LIMIT"]
)
)

Expand Down Expand Up @@ -607,8 +607,8 @@ def _get_service_account_for_patch(id_):

if len(project_access) > config["SERVICE_ACCOUNT_LIMIT"]:
raise UserError(
"Project access limited to {}. You added {}".format(
config["SERVICE_ACCOUNT_LIMIT"], len(project_access)
"Exceeded Allowable Number of Projects. Maximum {} Projects allowed per account.".format(
config["SERVICE_ACCOUNT_LIMIT"]
)
)

Expand Down

0 comments on commit 7fbe083

Please sign in to comment.