4.3.0
This commit is contained in:
@@ -75,14 +75,12 @@ func resourceComputeCreate(ctx context.Context, d *schema.ResourceData, m interf
|
||||
reqPPC.RAM = uint64(d.Get("ram").(int))
|
||||
reqPPC.ImageID = uint64(d.Get("image_id").(int))
|
||||
reqPPC.BootDisk = uint64(d.Get("boot_disk_size").(int))
|
||||
reqPPC.NetType = "NONE"
|
||||
reqPPC.Start = false
|
||||
|
||||
reqX86.CPU = uint64(d.Get("cpu").(int))
|
||||
reqX86.RAM = uint64(d.Get("ram").(int))
|
||||
reqX86.ImageID = uint64(d.Get("image_id").(int))
|
||||
reqX86.BootDisk = uint64(d.Get("boot_disk_size").(int))
|
||||
reqX86.NetType = "NONE"
|
||||
reqX86.Start = false
|
||||
|
||||
argVal, argSet := d.GetOk("description")
|
||||
|
||||
@@ -269,8 +269,8 @@ func utilityComputeCheckPresence(ctx context.Context, d *schema.ResourceData, m
|
||||
return nil, err
|
||||
}
|
||||
|
||||
log.Debugf("utilityComputeCheckPresence: traversing decoded JSON of length %d", len(computeList))
|
||||
for index, item := range computeList {
|
||||
log.Debugf("utilityComputeCheckPresence: traversing decoded JSON of length %d", len(computeList.Data))
|
||||
for index, item := range computeList.Data {
|
||||
// need to match Compute by name, skip Computes with the same name in DESTROYED satus
|
||||
if item.Name == computeName.(string) && item.Status != "DESTROYED" {
|
||||
log.Debugf("utilityComputeCheckPresence: index %d, matched name %s", index, item.Name)
|
||||
|
||||
Reference in New Issue
Block a user