Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Provider 1.0.1 - Required to specify leasedays even if there's a default specified in the blueprint #64

Closed
hobovirtual opened this issue Apr 21, 2020 · 2 comments

Comments

@hobovirtual
Copy link

vRA 7.x version
vRealize Automation 7.6

Terraform version
v0.12.24

terraform-provider-vra7 plugin version
The terraform-provider-vra7 plugin version 1.0.1

Describe the bug
Issue #60 fixed the cluster requirement but not the leasedays

To Reproduce
Steps to reproduce the behavior:

  1. maint.tf content
provider "vra7" {
    username = var.vra_username
    password = var.vra_password
    tenant = var.vra_tenant
    host = var.vra_host
    insecure = true
}

resource "vra7_deployment" "deployment" {
  catalog_item_name = "dev vm"              
  reasons = "provide a reason"
  description = "provide a description"
  //lease_days = 2

  resource_configuration {
    component_name = "vm1"

    //Please Provide the following information for the bootstrap node component
    configuration = {
      "custom.midname" = "BASE"
    }
  } 
}
  1. Terraform command
    terraform apply

  2. Error
    Error: The catalog item request failed with error vRealize API: [{Code:20117 Mes
    sage:The data specified within the request is invalid. SystemMessage:The data sp
    ecified within the request is invalid.} {Code:11002 Message:The value of the '_l
    easeDays' field cannot be less than 2. SystemMessage:The value of the field with
    id _leaseDays cannot be less than 2.} {Code:400 Message: SystemMessage:}]

Expected behavior
Don't declare property value when default exist in the blueprint

Desktop (please complete the following information):

  • OS: Windows 2016 and CentOS 7
@hobovirtual hobovirtual changed the title Provider 1.0.0 - Required to specify leasedays even if there's a default specified in the blueprint Provider 1.0.1 - Required to specify leasedays even if there's a default specified in the blueprint Apr 21, 2020
@Prativa20
Copy link
Contributor

@hobovirtual Will look into it, thanks!

@Prativa20
Copy link
Contributor

Fixed #78

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants