]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blobdiff - vendor/github.com/zclconf/go-cty/cty/json/unmarshal.go
Upgrade to 0.12
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / zclconf / go-cty / cty / json / unmarshal.go
index 155f0b8a1a773763f471c7afae1ff6697b0d5da5..38106455feda00cc0e4337e35cfa23c14c2f87c7 100644 (file)
@@ -72,7 +72,7 @@ func unmarshalPrimitive(tok json.Token, t cty.Type, path cty.Path) (cty.Value, e
                }
                switch v := tok.(type) {
                case string:
-                       val, err := convert.Convert(cty.StringVal(v), t)
+                       val, err := cty.ParseNumberVal(v)
                        if err != nil {
                                return cty.NilVal, path.NewError(err)
                        }