Mistake in type refactor in cloudTrailGetLoggingStatus

When adjusting the types to prevent casting, I didn't change the error
message to handle the pointer change.  "go tool vet" caught this.
This commit is contained in:
Paul Forman 2015-11-22 13:23:08 -07:00
parent 9cec40ea3c
commit 52aad04930
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ func cloudTrailGetLoggingStatus(conn *cloudtrail.CloudTrail, id *string) (bool,
}
resp, err := conn.GetTrailStatus(GetTrailStatusOpts)
if err != nil {
return false, fmt.Errorf("Error retrieving logging status of CloudTrail (%s): %s", id, err)
return false, fmt.Errorf("Error retrieving logging status of CloudTrail (%s): %s", *id, err)
}
return *resp.IsLogging, err