Fix vet errors found with Go 1.7

This commit is contained in:
Mitchell Hashimoto 2016-08-16 18:03:00 -07:00
parent 58e4a58099
commit e6d1e77a9a
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
2 changed files with 7 additions and 3 deletions

View File

@ -281,7 +281,7 @@ func resourceAwsDbEventSubscriptionUpdate(d *schema.ResourceData, meta interface
if len(remove) > 0 { if len(remove) > 0 {
for _, removing := range remove { for _, removing := range remove {
log.Printf("[INFO] Removing %s as a Source Identifier from %q", removing, d.Id()) log.Printf("[INFO] Removing %s as a Source Identifier from %q", *removing, d.Id())
_, err := rdsconn.RemoveSourceIdentifierFromSubscription(&rds.RemoveSourceIdentifierFromSubscriptionInput{ _, err := rdsconn.RemoveSourceIdentifierFromSubscription(&rds.RemoveSourceIdentifierFromSubscriptionInput{
SourceIdentifier: removing, SourceIdentifier: removing,
SubscriptionName: aws.String(d.Id()), SubscriptionName: aws.String(d.Id()),
@ -294,7 +294,7 @@ func resourceAwsDbEventSubscriptionUpdate(d *schema.ResourceData, meta interface
if len(add) > 0 { if len(add) > 0 {
for _, adding := range add { for _, adding := range add {
log.Printf("[INFO] Adding %s as a Source Identifier to %q", adding, d.Id()) log.Printf("[INFO] Adding %s as a Source Identifier to %q", *adding, d.Id())
_, err := rdsconn.AddSourceIdentifierToSubscription(&rds.AddSourceIdentifierToSubscriptionInput{ _, err := rdsconn.AddSourceIdentifierToSubscription(&rds.AddSourceIdentifierToSubscriptionInput{
SourceIdentifier: adding, SourceIdentifier: adding,
SubscriptionName: aws.String(d.Id()), SubscriptionName: aws.String(d.Id()),

View File

@ -365,7 +365,11 @@ func (d *InstanceDiff) Empty() bool {
} }
func (d *InstanceDiff) GoString() string { func (d *InstanceDiff) GoString() string {
return fmt.Sprintf("*%#v", *d) return fmt.Sprintf("*%#v", InstanceDiff{
Attributes: d.Attributes,
Destroy: d.Destroy,
DestroyTainted: d.DestroyTainted,
})
} }
// RequiresNew returns true if the diff requires the creation of a new // RequiresNew returns true if the diff requires the creation of a new