Skip to content

Commit 9858623

Browse files
authored
chore(baremetal): change offerid positional true getofferrequest (#441)
1 parent f9adaf2 commit 9858623

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

scaleway-async/scaleway_async/baremetal/v1/marshalling.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -864,16 +864,20 @@ def marshal_CreateServerRequest(
864864
[
865865
OneOfPossibility(
866866
"project_id",
867-
request.project_id or defaults.default_project_id
868-
if request.project_id is not None
869-
else None,
867+
(
868+
request.project_id or defaults.default_project_id
869+
if request.project_id is not None
870+
else None
871+
),
870872
defaults.default_project_id,
871873
),
872874
OneOfPossibility(
873875
"organization_id",
874-
request.organization_id or defaults.default_organization_id
875-
if request.organization_id is not None
876-
else None,
876+
(
877+
request.organization_id or defaults.default_organization_id
878+
if request.organization_id is not None
879+
else None
880+
),
877881
defaults.default_organization_id,
878882
),
879883
]

scaleway/scaleway/baremetal/v1/marshalling.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -864,16 +864,20 @@ def marshal_CreateServerRequest(
864864
[
865865
OneOfPossibility(
866866
"project_id",
867-
request.project_id or defaults.default_project_id
868-
if request.project_id is not None
869-
else None,
867+
(
868+
request.project_id or defaults.default_project_id
869+
if request.project_id is not None
870+
else None
871+
),
870872
defaults.default_project_id,
871873
),
872874
OneOfPossibility(
873875
"organization_id",
874-
request.organization_id or defaults.default_organization_id
875-
if request.organization_id is not None
876-
else None,
876+
(
877+
request.organization_id or defaults.default_organization_id
878+
if request.organization_id is not None
879+
else None
880+
),
877881
defaults.default_organization_id,
878882
),
879883
]

0 commit comments

Comments
 (0)