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:
kgottholm 2017-05-23 12:40:56 -04:00 committed by Toshio Kuratomi
commit 1e4b227e6f
3 changed files with 3 additions and 4 deletions

View file

@ -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'