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

EC2 Select availability zone #18485

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

pdostal
Copy link
Member

@pdostal pdostal commented Jan 19, 2024

Specifically select

my $ipv6_address_count = get_var('PUBLIC_CLOUD_EC2_IPV6_ADDRESS_COUNT', 1);
$cmd .= "-var 'vpc_security_group_ids=$vpc_security_group_ids' " if ($vpc_security_group_ids);
$cmd .= "-var 'availability_zone=$availability_zone' " if ($availability_zone);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

initial idea of conditional add of variable was based on optional nature of some variables , e.g. you may run job where you "-var 'enable_confidential_vm=true' " is defined but you may also run it without this . I think in this case if is not appropriate . Also I would remove it for subnet_id

Suggested change
$cmd .= "-var 'availability_zone=$availability_zone' " if ($availability_zone);
$cmd .= "-var 'availability_zone=$availability_zone' "

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also did the same for the VPC.

@pdostal pdostal force-pushed the aws_availability_zone branch from 18b3807 to b1fa9a3 Compare January 19, 2024 09:11
@pdostal pdostal force-pushed the aws_availability_zone branch from b1fa9a3 to 83d14f8 Compare January 19, 2024 09:17
Copy link
Member

@asmorodskyi asmorodskyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mloviska mloviska merged commit d412fae into os-autoinst:master Jan 19, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants