Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit e6d1e77

Browse files
committed
Fix vet errors found with Go 1.7
1 parent 58e4a58 commit e6d1e77

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

builtin/providers/aws/resource_aws_db_event_subscription.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ func resourceAwsDbEventSubscriptionUpdate(d *schema.ResourceData, meta interface
281281

282282
if len(remove) > 0 {
283283
for _, removing := range remove {
284-
log.Printf("[INFO] Removing %s as a Source Identifier from %q", removing, d.Id())
284+
log.Printf("[INFO] Removing %s as a Source Identifier from %q", *removing, d.Id())
285285
_, err := rdsconn.RemoveSourceIdentifierFromSubscription(&rds.RemoveSourceIdentifierFromSubscriptionInput{
286286
SourceIdentifier: removing,
287287
SubscriptionName: aws.String(d.Id()),
@@ -294,7 +294,7 @@ func resourceAwsDbEventSubscriptionUpdate(d *schema.ResourceData, meta interface
294294

295295
if len(add) > 0 {
296296
for _, adding := range add {
297-
log.Printf("[INFO] Adding %s as a Source Identifier to %q", adding, d.Id())
297+
log.Printf("[INFO] Adding %s as a Source Identifier to %q", *adding, d.Id())
298298
_, err := rdsconn.AddSourceIdentifierToSubscription(&rds.AddSourceIdentifierToSubscriptionInput{
299299
SourceIdentifier: adding,
300300
SubscriptionName: aws.String(d.Id()),

terraform/diff.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,11 @@ func (d *InstanceDiff) Empty() bool {
365365
}
366366

367367
func (d *InstanceDiff) GoString() string {
368-
return fmt.Sprintf("*%#v", *d)
368+
return fmt.Sprintf("*%#v", InstanceDiff{
369+
Attributes: d.Attributes,
370+
Destroy: d.Destroy,
371+
DestroyTainted: d.DestroyTainted,
372+
})
369373
}
370374

371375
// RequiresNew returns true if the diff requires the creation of a new

0 commit comments

Comments
 (0)