Skip to content

Commit

Permalink
chore: migrate to account/v3 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone authored Dec 10, 2024
1 parent 2863046 commit 9a02d25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/modules/scaleway_account_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@

try:
from scaleway import Client
from scaleway.account.v2 import AccountV2API
from scaleway.account.v3 import AccountV3ProjectAPI

HAS_SCALEWAY_SDK = True
except ImportError:
HAS_SCALEWAY_SDK = False


def create(module: AnsibleModule, client: "Client") -> None:
api = AccountV2API(client)
api = AccountV3ProjectAPI(client)

id = module.params.pop("id", None)
if id is not None:
Expand All @@ -116,7 +116,7 @@ def create(module: AnsibleModule, client: "Client") -> None:


def delete(module: AnsibleModule, client: "Client") -> None:
api = AccountV2API(client)
api = AccountV3ProjectAPI(client)

id = module.params.pop("id", None)
name = module.params.pop("name", None)
Expand Down

0 comments on commit 9a02d25

Please sign in to comment.