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},
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
}
}