Skip to content

Commit 689d5a0

Browse files
committed
Fix audit data source to convert object to string
1 parent b148eff commit 689d5a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oci/audit_events_data_source.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,9 @@ func responseToMap(obj *oci_audit.Response) map[string]interface{} {
560560
func stateChangeToMap(obj *oci_audit.StateChange) map[string]interface{} {
561561
result := map[string]interface{}{}
562562

563-
result["current"] = obj.Current
563+
result["current"] = genericMapToJsonMap(obj.Current)
564564

565-
result["previous"] = obj.Previous
565+
result["previous"] = genericMapToJsonMap(obj.Previous)
566566

567567
return result
568568
}

0 commit comments

Comments
 (0)