Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate to account/v3 #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading