Skip to content

Commit 26ac975

Browse files
authored
Update AWS subnet options for CDW cluster creation (#79)
Signed-off-by: Jim Enright <[email protected]>
1 parent b4dc4e6 commit 26ac975

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cdpy/dw.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ def gather_clusters(self, env_crn=None):
108108
})
109109
return out
110110

111-
def create_cluster(self, env_crn: str, overlay: bool, aws_public_subnets: list = None,
112-
aws_private_subnets: list = None, az_subnet: str = None, az_enable_az: bool = None,
111+
def create_cluster(self, env_crn: str, overlay: bool, aws_lb_subnets: list = None,
112+
aws_worker_subnets: list = None, az_subnet: str = None, az_enable_az: bool = None,
113113
private_load_balancer: bool = None):
114114
self.sdk.validate_crn(env_crn)
115-
if all(x is not None for x in [aws_private_subnets, aws_private_subnets]):
116-
aws_options = dict(publicSubnetIds=aws_public_subnets, privateSubnetIds=aws_private_subnets)
115+
if all(x is not None for x in [aws_worker_subnets, aws_lb_subnets]):
116+
aws_options = dict(lbSubnetIds=aws_lb_subnets, workerSubnetIds=aws_worker_subnets)
117117
else:
118118
aws_options = None
119119
if all(x is not None for x in [az_subnet, az_enable_az]):

0 commit comments

Comments
 (0)