Fix support for CheckFailures in Python Dynamic Providers (#5139)

Fixes #5138.
This commit is contained in:
Luke Hoban 2020-08-10 09:28:25 -07:00 committed by GitHub
parent 347a71b377
commit 5066ae3227
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -2,7 +2,9 @@ CHANGELOG
=========
## HEAD (Unreleased)
_(none)_
- Fix support for CheckFailures in Python Dynamic Providers
[#5138](https://github.com/pulumi/pulumi/pull/5138)
## 2.8.2 (2020-08-07)

View file

@ -135,7 +135,7 @@ class DynamicResourceProviderServicer(ResourceProviderServicer):
inputs_proto = loop.run_until_complete(rpc.serialize_properties(inputs, {}))
loop.close()
failures_proto = [proto.CheckFailure(f.property, f.reason) for f in failures]
failures_proto = [proto.CheckFailure(property=f.property, reason=f.reason) for f in failures]
fields = {"inputs": inputs_proto, "failures": failures_proto}
return proto.CheckResponse(**fields)