provisioner/chef-solo: be more lenient on json fix

This commit is contained in:
Mitchell Hashimoto 2014-04-28 22:20:57 -07:00
parent 4379997c2c
commit 379f3ae933
1 changed files with 1 additions and 13 deletions

View File

@ -499,16 +499,6 @@ func (p *Provisioner) deepJsonFix(key string, current interface{}) (interface{},
}
return val, nil
case bool:
return c, nil
case int:
return c, nil
case uint:
return c, nil
case float32:
return c, nil
case float64:
return c, nil
case map[interface{}]interface{}:
val := make(map[string]interface{})
for k, v := range c {
@ -526,10 +516,8 @@ func (p *Provisioner) deepJsonFix(key string, current interface{}) (interface{},
}
return val, nil
case string:
return c, nil
default:
return nil, fmt.Errorf("Unknown type for key '%s': %T", key, current)
return current, nil
}
}