[sdk/dotnet] Moved urn value retrieval into if statement (#6081)
This commit is contained in:
parent
ae7d95eb87
commit
9fbdc51fcd
|
@ -10,6 +10,9 @@ CHANGELOG
|
|||
correlate events back to the Pulumi SaaS
|
||||
[#6063](https://github.com/pulumi/pulumi/pull/6063)
|
||||
|
||||
- [sdk/dotnet] Moved urn value retrieval into if statement for MockMonitor
|
||||
[#6081](https://github.com/pulumi/pulumi/pull/6081)
|
||||
|
||||
## 2.17.0 (2021-01-06)
|
||||
|
||||
- Respect the `version` resource option for provider resources.
|
||||
|
|
|
@ -33,10 +33,10 @@ namespace Pulumi.Testing
|
|||
public async Task<InvokeResponse> InvokeAsync(InvokeRequest request)
|
||||
{
|
||||
var args = ToDictionary(request.Args);
|
||||
var urn = (string)args["urn"];
|
||||
|
||||
if (request.Tok == "pulumi:pulumi:getResource")
|
||||
{
|
||||
var urn = (string)args["urn"];
|
||||
object? registeredResource;
|
||||
lock (_registeredResources)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue