pulumi/pkg/codegen/internal
Daniel Bradley f935dfba2e
Fix invoke functions without args (#8805)
* Fix invoke functions without args

Example: `invoke("aws-native::getPartition")` has no additional args object passed therefore the args length is 1.
Graciously fallback to disable rendering of the output form for this case.

* Fix binder tests

- No sub-tests were run since the folder structure changed in 06a19b53ed
- Also fix capture of loop variable in closure.

* Add binder test for aws-native

This fails if 735ab2ba05e33caab75219cbcc3c5156b8a0e843 is reverted.

* Add to pending changelog

* Fix lint warning

* Emit diagnostics for missing arg

- Allow example generation to run without panic while we investigate deeper issues.
- Remove example which appears to have errors (leave aws-native host there for now).
2022-01-24 20:59:06 +00:00
..
test Fix invoke functions without args (#8805) 2022-01-24 20:59:06 +00:00
tstypes Fix 8110 (#8116) 2021-10-04 17:26:49 -04:00
utils Fix invoke functions without args (#8805) 2022-01-24 20:59:06 +00:00