diff --git a/audit/hashstructure.go b/audit/hashstructure.go index 3394ead456..c4e5593775 100644 --- a/audit/hashstructure.go +++ b/audit/hashstructure.go @@ -186,7 +186,7 @@ func (w *hashWalker) Primitive(v reflect.Value) error { return nil } - replaceVal := w.Callback(v.Interface().(string)) + replaceVal := w.Callback(v.String()) resultVal := reflect.ValueOf(replaceVal) switch w.loc {