mirror of https://github.com/hashicorp/terraform
With legacy helper/schema it's common to just type-assert whatever ResourceData.Get returns and trust that it'll always be valid. We can't achieve something quite that lazy with cty, but we can at least factor out the work of turning a value we already know is a number into an int64 value.pull/34814/head
parent
70537aab08
commit
1eaa18d60a
Loading…
Reference in new issue