mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
Os port fix (#24913)
* replace deprecated cmp() with custom conditional cmp is not present in Python3 but several modules use it Reference 24756
This commit is contained in:
parent
841baa3d5b
commit
1e4b227e6f
3 changed files with 3 additions and 4 deletions
|
@ -235,7 +235,7 @@ def setup_creation(client, module):
|
|||
if endpoint['VpcId'] == vpc_id and endpoint['ServiceName'] == service_name:
|
||||
sorted_endpoint_rt_ids = sorted(endpoint['RouteTableIds'])
|
||||
sorted_route_table_ids = sorted(route_table_ids)
|
||||
if cmp(sorted_endpoint_rt_ids, sorted_route_table_ids) == 0:
|
||||
if sorted_endpoint_rt_ids == sorted_route_table_ids:
|
||||
return False, camel_dict_to_snake_dict(endpoint)
|
||||
|
||||
changed, result = create_vpc_endpoint(client, module)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue