Fix support for CheckFailures in Python Dynamic Providers (#5139)
Fixes #5138.
This commit is contained in:
parent
347a71b377
commit
5066ae3227
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue