[sdk/dotnet] Moved urn value retrieval into if statement (#6081)

This commit is contained in:
Nicolas Fløysvik 2021-01-11 15:39:17 +01:00 committed by GitHub
parent ae7d95eb87
commit 9fbdc51fcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -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.

View file

@ -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)
{