Skip to content

Commit

Permalink
Merge pull request #421 from TheDecepTicon30/bugfixes
Browse files Browse the repository at this point in the history
Fix for nsxt_edge_clusters throws error if existing cluster and new cluster are different.
  • Loading branch information
r-raghu authored Mar 3, 2022
2 parents 26d02ae + 46dde5b commit 7869e42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion plugins/module_utils/vcenter_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
import requests
import atexit

from pyvim import connect
try:
from pyvim import connect
except:
from pyVim import connect
from pyVmomi import vmodl
from pyVmomi import vim

Expand Down
1 change: 0 additions & 1 deletion plugins/modules/nsxt_edge_clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ def check_for_update(module, manager_url, mgr_username, mgr_password, validate_c
return True
for count, member in enumerate(existing_edge_cluster['members']):
if member['transport_node_id'] != edge_cluster_with_id['members'][count]['transport_node_id']:
module.fail_json(msg='Existing [%s] new [%s]' % (member['transport_node_id'], edge_cluster_with_id['members'][count]['transport_node_id']))
return True
return False

Expand Down

0 comments on commit 7869e42

Please sign in to comment.