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

Fix #78: Cannot specify target container when adding disks to a virtual machine resource #138

Merged
merged 4 commits into from
Jun 19, 2020

Conversation

PacoDw
Copy link
Contributor

@PacoDw PacoDw commented Jun 10, 2020

The storage_conntainer was added as a new attribute into the disk_list to reference a container in a VM.

Added:

  • The attribute was added to the client to be part of the request to create the corresponding configuration.
  • It also was added to the resource and data source.
  • Test cases were created for resource and data source to validate it.
  • Documentation for resource and data source was added.

Example Usage

data "nutanix_clusters" "clusters" {}

resource "nutanix_virtual_machine" "vm" {
  name                 = "myVm"
  cluster_uuid         = data.nutanix_clusters.clusters.entities.0.metadata.uuid
  num_vcpus_per_socket = 1
  num_sockets          = 1
  memory_size_mib      = 186

  disk_list {
    disk_size_bytes = 68157440
    disk_size_mib   = 65

    storage_config {
      storage_container_reference {
        kind = "storage_container"
        uuid = "2bbe67bc-fd14-4637-8de1-6379257f4219"
      }
    }
  }
}

closes #78

@PacoDw PacoDw merged commit 9d3e86b into master Jun 19, 2020
@PacoDw PacoDw deleted the fix-#78 branch June 19, 2020 18:32
yannickstruyf3 pushed a commit to yannickstruyf3/terraform-provider-nutanix that referenced this pull request Nov 9, 2021
Fix nutanix#78: Cannot specify target container when adding disks to a virtual machine resource
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot specify target container when adding disks to a virtual machine resource
2 participants