Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
hakbailey committed Dec 5, 2024
1 parent 076eade commit 6a16f82
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
- name: Validate EC2 creation
ansible.builtin.assert:
that:
- _ec2_instance.instances | length == 1
- _ec2_instance.instances[0].instance_type == test_ec2_instance_type
- _ec2_instance.instances[0].image_id == image_id
- _ec2_instance.instances[0].key_name == test_ec2_key_name
- _ec2_instance.instances[0].subnet_id == subnet_id
- _ec2_instance.instances[0].tags.Environment == "Testing"
- _ec2_instance.instances[0].state.name in ["running", "pending"]
- _ec2_instance.instances[0].network_interfaces[0].groups[0].group_name == test_security_group_name
- _ec2_instance.instances[0].network_interfaces[0].association.public_ip is defined
- _ec2_instance.instances | length == 1
- _ec2_instance.instances[0].instance_type == test_ec2_instance_type
- _ec2_instance.instances[0].image_id == image_id
- _ec2_instance.instances[0].key_name == test_ec2_key_name
- _ec2_instance.instances[0].subnet_id == subnet_id
- _ec2_instance.instances[0].tags.Environment == "Testing"
- _ec2_instance.instances[0].state.name in ["running", "pending"]
- _ec2_instance.instances[0].network_interfaces[0].groups[0].group_name == test_security_group_name
- _ec2_instance.instances[0].network_interfaces[0].association.public_ip is defined

- name: Delete created instance
ansible.builtin.include_role:
Expand Down

0 comments on commit 6a16f82

Please sign in to comment.