We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running pulumi up with this program`:
pulumi up
import pulumi from pulumi_aws import s3 from pulumi import ResourceOptions from pulumi.dynamic import Resource from typing import Any, Optional from pulumi.dynamic import ResourceProvider, CreateResult class MyProvider(ResourceProvider): def create(self, inputs): return CreateResult(id_="foo", outs={}) def check(self, _olds: Any, news: Any) -> pulumi.dynamic.CheckResult: failures = [] failures.append( pulumi.dynamic.CheckFailure("my_cool_prop", "game over, man")) return pulumi.dynamic.CheckResult(inputs=news, failures=failures) class MyResource(Resource): def __init__(self, name: str, props: Any, opts: Optional[ResourceOptions] = None): super().__init__(MyProvider(), name, props, opts) r = MyResource("name", {})
Leads to:
Diagnostics: pulumi-python:dynamic:Resource (name): error: Exception calling application: No positional arguments allowed
The text was updated successfully, but these errors were encountered:
Fix support for CheckFailures in Python Dynamic Providers
541d384
Fixes #5138.
Fix support for CheckFailures in Python Dynamic Providers (#5139)
5066ae3
lukehoban
Successfully merging a pull request may close this issue.
Running
pulumi up
with this program`:Leads to:
The text was updated successfully, but these errors were encountered: