Skip to content

Commit

Permalink
Merge pull request #372 from aiven/dogukancagatay/EH-776/remove-accou…
Browse files Browse the repository at this point in the history
…nt-id-enforcement-from-sdk

Remove account_id enforcement from client on project create
  • Loading branch information
ngilles-aiven authored Nov 20, 2023
2 parents 4c3ddff + cebc59d commit 00b0a2c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aiven/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1639,7 +1639,7 @@ def get_account_authentication_methods(self, account_id: str) -> Sequence[dict[s
def create_project(
self,
project: str,
account_id: str,
account_id: str | None,
billing_group_id: str | None = None,
cloud: str | None = None,
copy_from_project: str | None = None,
Expand All @@ -1649,8 +1649,9 @@ def create_project(
body: dict[str, Any] = {
"cloud": cloud,
"project": project,
"account_id": account_id,
}
if account_id is not None:
body["account_id"] = account_id
if billing_group_id is not None:
body["billing_group_id"] = billing_group_id
if copy_from_project is not None:
Expand Down

0 comments on commit 00b0a2c

Please sign in to comment.