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 0419763 commit cfaea4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

FEATURES:

* **New Resource**: `opennebula_marketplace` (#414)
* **New Resource**: `opennebula_marketplace` (#414, #521)
* **New Data Source**: `opennebula_marketplace` (#414)
* **New Resource**: `opennebula_marketplace_appliance` (#476)
* **New Data Source**: `opennebula_marketplace_appliance` (#476)
Expand Down Expand Up @@ -412,7 +412,7 @@ DEPRECATION:

FEATURES:

* **New Resource**** New Data Source**: opennebula_user : First implementation ([#69](https://github.com/OpenNebula/terraform-provider-opennebula/issues/69))
* **New Resource****New Data Source**: opennebula_user : First implementation ([#69](https://github.com/OpenNebula/terraform-provider-opennebula/issues/69))
* resources/opennebula_virtual_machine: Enable VM disk update ([#64](https://github.com/OpenNebula/terraform-provider-opennebula/issues/64))
* resources/opennebula_virtual_machine: Change 'image_id' disk attribute from Required to Optional ([#71](https://github.com/OpenNebula/terraform-provider-opennebula/issues/71))
* **New Resource**: `opennebula_service`: First implementation ([oneflow](http://docs.opennebula.io/5.12/integration/system_interfaces/appflow_api.html#service)),
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 @@ -555,7 +555,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 @@ -564,7 +564,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 @@ -573,7 +573,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 @@ -582,7 +582,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 @@ -591,7 +591,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

0 comments on commit cfaea4b

Please sign in to comment.