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:
parent
9cec40ea3c
commit
52aad04930
|
@ -200,7 +200,7 @@ func cloudTrailGetLoggingStatus(conn *cloudtrail.CloudTrail, id *string) (bool,
|
||||||
}
|
}
|
||||||
resp, err := conn.GetTrailStatus(GetTrailStatusOpts)
|
resp, err := conn.GetTrailStatus(GetTrailStatusOpts)
|
||||||
if err != nil {
|
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
|
return *resp.IsLogging, err
|
||||||
|
|
Loading…
Reference in New Issue