Skip to content

Commit 0cf299c

Browse files
committed
F #521: Fix int bad conversion
1 parent fd407e8 commit 0cf299c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FEATURES:
44

55
* **New Resource**: `opennebula_marketplace` (#414)
66
* **New Data Source**: `opennebula_marketplace` (#414)
7-
* **New Resource**: `opennebula_marketplace_appliance` (#476, #517, #518)
7+
* **New Resource**: `opennebula_marketplace_appliance` (#476, #517, #518, #521)
88
* **New Data Source**: `opennebula_marketplace_appliance` (#476)
99
* resources/opennebula_virtual_router_nic: add floating IP allocation (#510)
1010

opennebula/resource_opennebula_marketplace_app.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ func resourceOpennebulaMarketPlaceAppUpdate(ctx context.Context, d *schema.Resou
556556
if d.HasChange("description") {
557557
newTpl.Del(string(appk.Description))
558558

559-
description := d.Get("description").(int)
559+
description := d.Get("description").(string)
560560
newTpl.AddPair(string(appk.Description), description)
561561

562562
update = true
@@ -565,7 +565,7 @@ func resourceOpennebulaMarketPlaceAppUpdate(ctx context.Context, d *schema.Resou
565565
if d.HasChange("publisher") {
566566
newTpl.Del(string(appk.Publisher))
567567

568-
publisher := d.Get("publisher").(int)
568+
publisher := d.Get("publisher").(string)
569569
newTpl.AddPair(string(appk.Publisher), publisher)
570570

571571
update = true
@@ -574,7 +574,7 @@ func resourceOpennebulaMarketPlaceAppUpdate(ctx context.Context, d *schema.Resou
574574
if d.HasChange("version") {
575575
newTpl.Del(string(appk.Version))
576576

577-
version := d.Get("version").(int)
577+
version := d.Get("version").(string)
578578
newTpl.AddPair(string(appk.Version), version)
579579

580580
update = true
@@ -583,7 +583,7 @@ func resourceOpennebulaMarketPlaceAppUpdate(ctx context.Context, d *schema.Resou
583583
if d.HasChange("vmtemplate64") {
584584
newTpl.Del(string(appk.VMTemplate64))
585585

586-
vmTemplate := d.Get("vmtemplate64").(int)
586+
vmTemplate := d.Get("vmtemplate64").(string)
587587
newTpl.AddPair(string(appk.VMTemplate64), vmTemplate)
588588

589589
update = true
@@ -592,7 +592,7 @@ func resourceOpennebulaMarketPlaceAppUpdate(ctx context.Context, d *schema.Resou
592592
if d.HasChange("apptemplate64") {
593593
newTpl.Del(string(appk.AppTemplate64))
594594

595-
appTemplate := d.Get("apptemplate64").(int)
595+
appTemplate := d.Get("apptemplate64").(string)
596596
newTpl.AddPair(string(appk.AppTemplate64), appTemplate)
597597

598598
update = true

opennebula/resource_opennebula_marketplace_app_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ resource "opennebula_marketplace_appliance" "example" {
137137
permissions = "642"
138138
type = "VMTEMPLATE"
139139
description = "this is an appliance"
140-
version = "0.2.0"
140+
version = "1.0.0"
141141
142142
tags = {
143143
custom1 = "value2"

0 commit comments

Comments
 (0)