Skip to content

Commit

Permalink
LicenseV2: check error on setting servers
Browse files Browse the repository at this point in the history
Check error on setting non-scalar attribute.
  • Loading branch information
ozerovandrei committed Nov 7, 2018
1 parent 83a01fc commit 842554d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion selvpc/resource_selvpc_resell_license_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ func resourceResellLicenseV2Read(d *schema.ResourceData, meta interface{}) error
d.Set("status", license.Status)
d.Set("type", license.Type)
associatedServers := serversMapsFromStructs(license.Servers)
d.Set("servers", associatedServers)
if err := d.Set("servers", associatedServers); err != nil {
log.Printf("[DEBUG] servers: %s", err)
}

return nil
}
Expand Down

0 comments on commit 842554d

Please sign in to comment.