Audit the client token accessors (#2037)

This commit is contained in:
Vishal Nayak
2016-10-29 17:01:49 -04:00
committed by Jeff Mitchell
parent ad5d270e58
commit 9a60bf2a50
9 changed files with 88 additions and 31 deletions

View File

@@ -49,6 +49,10 @@ func Hash(salter *salt.Salt, raw interface{}) error {
s.ClientToken = fn(s.ClientToken)
}
if s.ClientTokenAccessor != "" {
s.ClientTokenAccessor = fn(s.ClientTokenAccessor)
}
data, err := HashStructure(s.Data, fn)
if err != nil {
return err