diff --git a/changelogs/fragments/20240909-ec2_vpc_vgw-fix-super-exception.yaml b/changelogs/fragments/20240909-ec2_vpc_vgw-fix-super-exception.yaml new file mode 100644 index 00000000000..671c7f8f565 --- /dev/null +++ b/changelogs/fragments/20240909-ec2_vpc_vgw-fix-super-exception.yaml @@ -0,0 +1,3 @@ +--- +minor_changes: + - ec2_vpc_vgw - Fix call to parent static method in class ``VGWRetry`` (https://github.com/ansible-collections/community.aws/pull/2140). \ No newline at end of file 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