provider/profitbricks: fmt changes post cherry-pick
This commit is contained in:
parent
c01ce44d4c
commit
e0e3692076
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue