provider/profitbricks: fmt changes post cherry-pick

This commit is contained in:
stack72 2017-02-23 18:07:29 +02:00
parent c01ce44d4c
commit e0e3692076
No known key found for this signature in database
GPG Key ID: 8619A619B085CB16
1 changed files with 11 additions and 11 deletions

View File

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