diff --git a/builtin/providers/profitbricks/resource_profitbricks_server.go b/builtin/providers/profitbricks/resource_profitbricks_server.go index 8ec628993..021072a2a 100644 --- a/builtin/providers/profitbricks/resource_profitbricks_server.go +++ b/builtin/providers/profitbricks/resource_profitbricks_server.go @@ -143,8 +143,8 @@ func resourceProfitBricksServer() *schema.Resource { Elem: &schema.Schema{Type: schema.TypeString}, Computed: true, }, - "nat" :{ - Type: schema.TypeBool, + "nat": { + Type: schema.TypeBool, Optional: true, }, "firewall_active": { @@ -305,13 +305,13 @@ func resourceProfitBricksServerCreate(d *schema.ResourceData, meta interface{}) Items: []profitbricks.Volume{ { Properties: profitbricks.VolumeProperties{ - Name: rawMap["name"].(string), - Size: rawMap["size"].(int), - Type: rawMap["disk_type"].(string), - ImagePassword: imagePassword, - Image: image, - Bus: rawMap["bus"].(string), - LicenceType: licenceType, + Name: rawMap["name"].(string), + Size: rawMap["size"].(int), + Type: rawMap["disk_type"].(string), + ImagePassword: imagePassword, + Image: image, + Bus: rawMap["bus"].(string), + LicenceType: licenceType, AvailabilityZone: availabilityZone, }, }, @@ -400,7 +400,7 @@ func resourceProfitBricksServerCreate(d *schema.ResourceData, meta interface{}) } request.Entities.Nics.Items[0].Entities = &profitbricks.NicEntities{ - Firewallrules : &profitbricks.FirewallRules{ + Firewallrules: &profitbricks.FirewallRules{ Items: []profitbricks.FirewallRule{ firewall, }, @@ -646,4 +646,4 @@ func readPublicKey(path string) (key string, err error) { return "", err } return string(ssh.MarshalAuthorizedKey(pubKey)[:]), nil -} \ No newline at end of file +}