mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00: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:
committed by
Toshio Kuratomi
parent
841baa3d5b
commit
1e4b227e6f
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user