Skip to content

Commit

Permalink
Fix sanity errors happening with the ansible devel branch (ansible-co…
Browse files Browse the repository at this point in the history
…llections#2146)

SUMMARY

Fix sanity errors happening with the ansible devel branch
ERROR: Found 5 pylint issue(s) which need to be resolved:
ERROR: plugins/modules/ec2_vpc_vgw.py:504:13: used-before-assignment: Using variable 'deleted_vgw' before assignment
ERROR: plugins/modules/ecs_cluster.py:342:12: unreachable: Unreachable code
ERROR: plugins/modules/ecs_cluster.py:364:12: unreachable: Unreachable code
ERROR: plugins/modules/ecs_service.py:1251:12: unreachable: Unreachable code
ERROR: plugins/modules/ecs_service.py:1266:12: unreachable: Unreachable code

ISSUE TYPE

Bugfix Pull Request
Docs Pull Request
Feature Pull Request
New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Bikouo Aubin

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@008b515
  • Loading branch information
alinabuzachis committed Oct 23, 2024
1 parent fa2701a commit 89c2388
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/modules/ec2_vpc_vgw.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ def ensure_vgw_absent(client, module):
changed = False
params = dict()
result = dict()
deleted_vgw = None
params["Name"] = module.params.get("name")
params["VpcId"] = module.params.get("vpc_id")
params["Type"] = module.params.get("type")
Expand Down

0 comments on commit 89c2388

Please sign in to comment.