This fixes the issue where creating esc resources with an older version of pulumi-pulumiservice and then using pulumi to do something with that resource on a newer version of pulumi-pulumiservice causes a panic due to a type error
We started loading input yamls as strings starting in https://github.com/pulumi/pulumi-pulumiservice/pull/391, but resources created before then will still be assets. This fix will check both the old and new way for backwards compatibility
This fixes the issue where creating esc resources with an older version of pulumi-pulumiservice and then using pulumi to do something with that resource on a newer version of pulumi-pulumiservice causes a panic due to a type error
We started loading input yamls as strings starting in https://github.com/pulumi/pulumi-pulumiservice/pull/391, but resources created before then will still be assets. This fix will check both the old and new way for backwards compatibility
Fixes https://github.com/pulumi/pulumi-pulumiservice/issues/400
Testing
Reproduction steps:
pulumi up
fromexamples/ts-environments
pulumi destroy
fromexamples/ts-environments
Without this change, you get an error that looks like: