Use `%t` for boolean value

This commit is contained in:
Kazunori Kojima 2015-09-06 11:06:29 +09:00
parent 707fe3ac6d
commit 47d2b29895
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ func resourceAwsS3Bucket() *schema.Resource {
Set: func(v interface{}) int {
var buf bytes.Buffer
m := v.(map[string]interface{})
buf.WriteString(fmt.Sprintf("%d-", m["enabled"].(bool)))
buf.WriteString(fmt.Sprintf("%t-", m["enabled"].(bool)))
return hashcode.String(buf.String())
},