Skip to content

Commit

Permalink
F #521: Fix int bad conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
frousselet committed Jan 19, 2024
1 parent fd407e8 commit 0cf299c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FEATURES:

* **New Resource**: `opennebula_marketplace` (#414)
* **New Data Source**: `opennebula_marketplace` (#414)
* **New Resource**: `opennebula_marketplace_appliance` (#476, #517, #518)
* **New Resource**: `opennebula_marketplace_appliance` (#476, #517, #518, #521)
* **New Data Source**: `opennebula_marketplace_appliance` (#476)
* resources/opennebula_virtual_router_nic: add floating IP allocation (#510)

Expand Down
10 changes: 5 additions & 5 deletions opennebula/resource_opennebula_marketplace_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ func resourceOpennebulaMarketPlaceAppUpdate(ctx context.Context, d *schema.Resou
if d.HasChange("description") {
newTpl.Del(string(appk.Description))

description := d.Get("description").(int)
description := d.Get("description").(string)
newTpl.AddPair(string(appk.Description), description)

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

publisher := d.Get("publisher").(int)
publisher := d.Get("publisher").(string)
newTpl.AddPair(string(appk.Publisher), publisher)

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

version := d.Get("version").(int)
version := d.Get("version").(string)
newTpl.AddPair(string(appk.Version), version)

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

vmTemplate := d.Get("vmtemplate64").(int)
vmTemplate := d.Get("vmtemplate64").(string)
newTpl.AddPair(string(appk.VMTemplate64), vmTemplate)

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

appTemplate := d.Get("apptemplate64").(int)
appTemplate := d.Get("apptemplate64").(string)
newTpl.AddPair(string(appk.AppTemplate64), appTemplate)

update = true
Expand Down
2 changes: 1 addition & 1 deletion opennebula/resource_opennebula_marketplace_app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ resource "opennebula_marketplace_appliance" "example" {
permissions = "642"
type = "VMTEMPLATE"
description = "this is an appliance"
version = "0.2.0"
version = "1.0.0"
tags = {
custom1 = "value2"
Expand Down

0 comments on commit 0cf299c

Please sign in to comment.