Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mandar242 committed Nov 22, 2024
1 parent 35a2670 commit 05d4573
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

- name: Print warning and exit
ansible.builtin.fail:
msg: "Instance with name {{ ec2_instance_create_instance_name }} already exists in {{ ec2_instance_create_aws_region }}.
msg: "Instance with name {{ ec2_instance_create_instance_name }} already exists in {{ ec2_instance_create_aws_region }}.
Please provide different name to avoid updating instance."
when: ec2_info_result.instances | length >= 1

Expand Down Expand Up @@ -98,4 +98,4 @@
ansible.builtin.debug:
msg:
- "EC2 instance {{ ec2_instance.instance_ids[0] }} created successfully"
- "Instance details: {{ _ec2_instance.instances[0] }}"
- "Instance details: {{ _ec2_instance.instances[0] }}"
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
region: "{{ aws_region }}"
block:
- name: Create resources required for test
include_tasks: setup.yml
ansible.builtin.include_tasks: setup.yml

- name: Run tests for case 1 - EC2 with no external sg, igw, eip
include_tasks: tasks/test_ec2_only.yml
ansible.builtin.include_tasks: tasks/test_ec2_only.yml

- name: Run tests for case 2 - EC2 with external sg, igw, eip
include_tasks: tasks/test_ec2_with_igw_sg_eip.yml
ansible.builtin.include_tasks: tasks/test_ec2_with_igw_sg_eip.yml

always:
- name: Delete any leftover resources used in tests
Expand Down

0 comments on commit 05d4573

Please sign in to comment.