This commit is contained in:
asteam
2024-11-18 13:10:53 +03:00
parent 36879efd58
commit d6b4752cc7
303 changed files with 32566 additions and 55 deletions

View File

@@ -1881,10 +1881,11 @@ func ResourceComputeSchemaMake() map[string]*schema.Schema {
Description: "ID of the OS image to base this compute instance on.",
},
"chipset": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "Type of the emulated system.",
Type: schema.TypeString,
Optional: true,
Computed: true,
ValidateFunc: validation.StringInSlice([]string{"Q35", "i440fx"}, false), // observe case while validating
Description: "Type of the emulated system.",
},
"without_boot_disk": {
Type: schema.TypeBool,

View File

@@ -2918,10 +2918,11 @@ func resourceComputeSchemaMake() map[string]*schema.Schema {
Description: "ID of the OS image to base this compute instance on.",
},
"chipset": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "Type of the emulated system.",
Type: schema.TypeString,
Optional: true,
Computed: true,
ValidateFunc: validation.StringInSlice([]string{"Q35", "i440fx"}, false), // observe case while validating
Description: "Type of the emulated system.",
},
"without_boot_disk": {
Type: schema.TypeBool,

View File

@@ -45,13 +45,13 @@ func checkParamsExistence(ctx context.Context, d *schema.ResourceData, c *contro
var errs []error
stackId := uint64(d.Get("stack_id").(int))
rgId := uint64(d.Get("rd_id").(int))
rgId := uint64(d.Get("rg_id").(int))
if err := ic.ExistRG(ctx, rgId, c); err != nil {
errs = append(errs, err)
}
if err := ic.ExistStackInPcidevice(ctx, stackId, rgId, c); err != nil {
if err := ic.ExistStack(ctx, stackId, c); err != nil {
errs = append(errs, err)
}

View File

@@ -33,9 +33,10 @@ package pcidevice
import (
"context"
log "github.com/sirupsen/logrus"
"strconv"
log "github.com/sirupsen/logrus"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/pcidevice"