mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -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
|
@ -223,7 +223,7 @@ class VMwareCluster(object):
|
|||
self.cluster.configurationEx.drsConfig.enabled,
|
||||
self.cluster.configurationEx.vsanConfigInfo.enabled)
|
||||
|
||||
if cmp(desired_state, current_state) != 0:
|
||||
if desired_state != current_state:
|
||||
return 'update'
|
||||
else:
|
||||
return 'present'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue