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 filters should take non-strings as filter arguments #28

Closed
briantist opened this issue Apr 10, 2020 · 0 comments · Fixed by #88
Closed

ec2 filters should take non-strings as filter arguments #28

briantist opened this issue Apr 10, 2020 · 0 comments · Fixed by #88

Comments

@briantist
Copy link
Contributor

This is a resubmission of ansible/ansible#43570 because the original issue was closed while its PR was never finished/merged.


The original PR needed changes and tests:
ansible/ansible#48654

SUMMARY

It's unintuitive to have to quote booleans and integers with proper capitalization when used in ec2 filters (used in ec2_ami_info, ec2_instance_info, ec2_instance, etc.).

Non-string values should be accepted and converted as needed to what boto expects.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

ec2.py (module_util)

ANSIBLE VERSION
2.9.6
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
- name: find
  ec2_ami_info:
    region: "{{region}}"
    filters:
      architecture: x86_64
      is-public: true
      name: "amzn-ami-2018.03.c-amazon-ecs-optimized"
      owner-id: 591542846629 # amazon's id
EXPECTED RESULTS
ACTUAL RESULTS

goneri pushed a commit that referenced this issue Sep 20, 2022
elb_application_lb - treat empty security group as VPC default

SUMMARY

Fixes idempotency issue when security_groups = [] by treating [] as using the VPC's default security group (like it does on creation).
Fixes #28
Used same logic as amazon.aws.ec2_vpc_route_table does for using default igw
Added integration tests

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
elb_application_lb

Reviewed-by: Jill R <None>
Reviewed-by: Mark Woolley <[email protected]>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@20b726a
GomathiselviS pushed a commit to GomathiselviS/amazon.aws that referenced this issue Sep 20, 2022
…le-collections#971)

elb_application_lb - treat empty security group as VPC default

SUMMARY

Fixes idempotency issue when security_groups = [] by treating [] as using the VPC's default security group (like it does on creation).
Fixes ansible-collections#28
Used same logic as amazon.aws.ec2_vpc_route_table does for using default igw
Added integration tests

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
elb_application_lb

Reviewed-by: Jill R <None>
Reviewed-by: Mark Woolley <[email protected]>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@20b726a
abikouo pushed a commit to abikouo/amazon.aws that referenced this issue Sep 18, 2023
…le-collections#971)

elb_application_lb - treat empty security group as VPC default

SUMMARY

Fixes idempotency issue when security_groups = [] by treating [] as using the VPC's default security group (like it does on creation).
Fixes ansible-collections#28
Used same logic as amazon.aws.ec2_vpc_route_table does for using default igw
Added integration tests

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
elb_application_lb

Reviewed-by: Jill R <None>
Reviewed-by: Mark Woolley <[email protected]>
abikouo pushed a commit to abikouo/amazon.aws that referenced this issue Sep 18, 2023
…le-collections#971)

elb_application_lb - treat empty security group as VPC default

SUMMARY

Fixes idempotency issue when security_groups = [] by treating [] as using the VPC's default security group (like it does on creation).
Fixes ansible-collections#28
Used same logic as amazon.aws.ec2_vpc_route_table does for using default igw
Added integration tests

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
elb_application_lb

Reviewed-by: Jill R <None>
Reviewed-by: Mark Woolley <[email protected]>
abikouo pushed a commit to abikouo/amazon.aws that referenced this issue Oct 24, 2023
…le-collections#971)

elb_application_lb - treat empty security group as VPC default

SUMMARY

Fixes idempotency issue when security_groups = [] by treating [] as using the VPC's default security group (like it does on creation).
Fixes ansible-collections#28
Used same logic as amazon.aws.ec2_vpc_route_table does for using default igw
Added integration tests

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
elb_application_lb

Reviewed-by: Jill R <None>
Reviewed-by: Mark Woolley <[email protected]>
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 a pull request may close this issue.

1 participant