Fix vet errors in providers (#11496)
This commit is contained in:
parent
d17b4ed776
commit
b5e8d62b14
|
@ -257,7 +257,7 @@ func setProjectIamPolicy(policy *cloudresourcemanager.Policy, config *Config, pi
|
|||
&cloudresourcemanager.SetIamPolicyRequest{Policy: policy}).Do()
|
||||
|
||||
if err != nil {
|
||||
return fmt.Errorf("Error applying IAM policy for project %q. Policy is %+s, error is %s", pid, policy, err)
|
||||
return fmt.Errorf("Error applying IAM policy for project %q. Policy is %#v, error is %s", pid, policy, err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ func resourceProfitBricksNicRead(d *schema.ResourceData, meta interface{}) error
|
|||
if nic.StatusCode > 299 {
|
||||
return fmt.Errorf("Error occured while fetching a nic ID %s %s", d.Id(), nic.Response)
|
||||
}
|
||||
log.Printf("[INFO] LAN ON NIC: %s", nic.Properties.Lan)
|
||||
log.Printf("[INFO] LAN ON NIC: %q", nic.Properties.Lan)
|
||||
d.Set("dhcp", nic.Properties.Dhcp)
|
||||
d.Set("lan", nic.Properties.Lan)
|
||||
d.Set("name", nic.Properties.Name)
|
||||
|
|
|
@ -372,7 +372,7 @@ func resourceProfitBricksServerCreate(d *schema.ResourceData, meta interface{})
|
|||
}
|
||||
|
||||
request.Entities.Nics.Items[0].Entities = &profitbricks.NicEntities{
|
||||
&profitbricks.FirewallRules{
|
||||
Firewallrules: &profitbricks.FirewallRules{
|
||||
Items: []profitbricks.FirewallRule{
|
||||
firewall,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue