Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nsxt_edge_clusters.py throws "msg": "No id exist with display name None" when a cluster_profile_bindings is used. #520

Open
abukow opened this issue Oct 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@abukow
Copy link

abukow commented Oct 23, 2024

Describe the bug

Creating nsx edge cluster fails if cluster_profile_bindings with existing cluster profile is used. Module throws the following error: "msg": "No id exist with display name None

Reproduction steps

  1. Create a variable file with:
cluster_profile_bindings:
  - profile_name: "nsx-edge-profile-name"
    resource_type: EdgeHighAvailabilityProfile
  1. Create a playbook with vmware.ansible_for_nsxt.nsxt_edge_clusters
  2. Run the playbook

Expected behavior

Edge cluster with specified cluster profile is created.

Additional context

In nsxt_edge_clusters.py line 226 uses wrong key 'profile_name' which always returns null and results in error.

       cluster_profile_name = cluster_profile.pop('profile_name', None)

Changing 'profile_name' to 'profile_id' fixes the problem.

@abukow abukow added the bug Something isn't working label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant