diff --git a/builtin/providers/azurerm/resource_arm_virtual_machine.go b/builtin/providers/azurerm/resource_arm_virtual_machine.go index a435a3726..d97ebaf37 100644 --- a/builtin/providers/azurerm/resource_arm_virtual_machine.go +++ b/builtin/providers/azurerm/resource_arm_virtual_machine.go @@ -1295,7 +1295,7 @@ func findStorageAccountResourceGroup(meta interface{}, storageAccountName string results := *rf.Value if len(results) != 1 { - return "", fmt.Errorf("Wrong number of results making resource request for query %s: %s", filter, len(results)) + return "", fmt.Errorf("Wrong number of results making resource request for query %s: %d", filter, len(results)) } id, err := parseAzureResourceID(*results[0].ID) diff --git a/builtin/providers/digitalocean/resource_digitalocean_droplet_test.go b/builtin/providers/digitalocean/resource_digitalocean_droplet_test.go index acb7c86bf..51a76ada1 100644 --- a/builtin/providers/digitalocean/resource_digitalocean_droplet_test.go +++ b/builtin/providers/digitalocean/resource_digitalocean_droplet_test.go @@ -255,7 +255,7 @@ func testAccCheckDigitalOceanDropletRenamedAndResized(droplet *godo.Droplet) res } if droplet.Disk != 30 { - return fmt.Errorf("Bad disk: %s", droplet.Disk) + return fmt.Errorf("Bad disk: %d", droplet.Disk) } return nil @@ -270,7 +270,7 @@ func testAccCheckDigitalOceanDropletResizeWithOutDisk(droplet *godo.Droplet) res } if droplet.Disk != 20 { - return fmt.Errorf("Bad disk: %s", droplet.Disk) + return fmt.Errorf("Bad disk: %d", droplet.Disk) } return nil