Fix vet errors found with Go 1.7
This commit is contained in:
parent
58e4a58099
commit
e6d1e77a9a
|
@ -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()),
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue