comment so future-mitchell knows what I've done
This commit is contained in:
parent
ba05119a75
commit
5cd2cfa563
|
@ -217,6 +217,9 @@ func decodeConfigHook(raws []interface{}) (mapstructure.DecodeHookFunc, error) {
|
||||||
|
|
||||||
return func(f reflect.Kind, t reflect.Kind, v interface{}) (interface{}, error) {
|
return func(f reflect.Kind, t reflect.Kind, v interface{}) (interface{}, error) {
|
||||||
if t != reflect.String {
|
if t != reflect.String {
|
||||||
|
// We need to convert []uint8 to string. We have to do this
|
||||||
|
// because internally Packer uses MsgPack for RPC and the MsgPack
|
||||||
|
// codec turns strings into []uint8
|
||||||
if f == reflect.Slice {
|
if f == reflect.Slice {
|
||||||
dataVal := reflect.ValueOf(v)
|
dataVal := reflect.ValueOf(v)
|
||||||
dataType := dataVal.Type()
|
dataType := dataVal.Type()
|
||||||
|
|
Loading…
Reference in New Issue