From fa2701af5c41097afdac4d6cd4ff6d09046cf976 Mon Sep 17 00:00:00 2001 From: Bikouo Aubin <79859644+abikouo@users.noreply.github.com> Date: Mon, 9 Sep 2024 16:41:54 +0200 Subject: [PATCH] ec2_vpc_vgw - fix call to parent static method in class VGWRetry (#2140) SUMMARY When trying to create a VPN virtual gateway with a non-existent VPC id, module fails incorrectly with the following error \\"/tmp/ansible_community.aws.ec2_vpc_vgw_payload_t4kolii1/ansible_community.aws.ec2_vpc_vgw_payload.zip/ansible_collections/community/aws/plugins/modules/ec2_vpc_vgw.py\\", line 173, in found\\nTypeError: super(type, obj): obj must be an instance or subtype of type The fix consists in adding argument to super() ISSUE TYPE Bugfix Pull Request COMPONENT NAME ec2_vpc_vgw Reviewed-by: Mark Chappell This commit was initially merged in https://github.com/ansible-collections/community.aws See: https://github.com/ansible-collections/community.aws/commit/87e2152254b35949343df70c8fc68af3825573a6 --- plugins/modules/ec2_vpc_vgw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/ec2_vpc_vgw.py b/plugins/modules/ec2_vpc_vgw.py index 135658f7639..1b2af15a5ab 100644 --- a/plugins/modules/ec2_vpc_vgw.py +++ b/plugins/modules/ec2_vpc_vgw.py @@ -170,7 +170,7 @@ def found(response_code, catch_extra_error_codes=None): response_code = (response_code,) for code in response_code: - if super().found(response_code, catch_extra_error_codes): + if super(VGWRetry, VGWRetry).found(response_code, catch_extra_error_codes): return True return False