diff --git a/CHANGELOG.md b/CHANGELOG.md index 608459768..43a640a9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ FEATURES: * **New Resource**: `opennebula_marketplace` (#414) * **New Data Source**: `opennebula_marketplace` (#414) -* **New Resource**: `opennebula_marketplace_appliance` (#476, #518) +* **New Resource**: `opennebula_marketplace_appliance` (#476, #518, #521) * **New Data Source**: `opennebula_marketplace_appliance` (#476) * resources/opennebula_virtual_router_nic: add floating IP allocation (#510) diff --git a/opennebula/resource_opennebula_marketplace_app.go b/opennebula/resource_opennebula_marketplace_app.go index d485c4ab2..05741cd27 100644 --- a/opennebula/resource_opennebula_marketplace_app.go +++ b/opennebula/resource_opennebula_marketplace_app.go @@ -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 @@ -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 @@ -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 @@ -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 @@ -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