Modify hash to be computed using spew library so that nested object values are used instead of pointer

This commit is contained in:
saadali
2015-01-05 15:24:49 -08:00
parent 943ed6d289
commit f92f830e1f
4 changed files with 96 additions and 3 deletions

View File

@@ -540,7 +540,7 @@ const containerNamePrefix = "k8s"
func HashContainer(container *api.Container) uint64 {
hash := adler32.New()
fmt.Fprintf(hash, "%#v", *container)
util.DeepHashObject(hash, *container)
return uint64(hash.Sum32())
}