Fix vet errors in providers (#11496)

This commit is contained in:
Christoph Blecker 2017-01-29 07:59:55 -08:00 committed by Paul Stack
parent d17b4ed776
commit b5e8d62b14
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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)

View File

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