Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

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

@abukow

Description

@abukow

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions