aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/zclconf/go-cty/cty/json/unmarshal.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/zclconf/go-cty/cty/json/unmarshal.go')
-rw-r--r--vendor/github.com/zclconf/go-cty/cty/json/unmarshal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/zclconf/go-cty/cty/json/unmarshal.go b/vendor/github.com/zclconf/go-cty/cty/json/unmarshal.go
index 155f0b8..3810645 100644
--- a/vendor/github.com/zclconf/go-cty/cty/json/unmarshal.go
+++ b/vendor/github.com/zclconf/go-cty/cty/json/unmarshal.go
@@ -72,7 +72,7 @@ func unmarshalPrimitive(tok json.Token, t cty.Type, path cty.Path) (cty.Value, e
72 } 72 }
73 switch v := tok.(type) { 73 switch v := tok.(type) {
74 case string: 74 case string:
75 val, err := convert.Convert(cty.StringVal(v), t) 75 val, err := cty.ParseNumberVal(v)
76 if err != nil { 76 if err != nil {
77 return cty.NilVal, path.NewError(err) 77 return cty.NilVal, path.NewError(err)
78 } 78 }