Skip to content

Commit c208f8b

Browse files
committed
Instantiate cmdlet header values when calling apiversion
1 parent 1843dc9 commit c208f8b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Resource/GetAzureResourceCmdlet.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -461,12 +461,9 @@ private async Task<Resource<JToken>> GetPopulatedResource(Resource<JToken> resou
461461
{
462462
try
463463
{
464-
var apiVersion = await ApiVersionHelper
465-
.DetermineApiVersion(
466-
DefaultContext,
467-
resourceId: resource.Id,
468-
cancellationToken: this.CancellationToken.Value,
469-
pre: this.Pre)
464+
var apiVersion = await this.DetermineApiVersion(
465+
resourceId: resource.Id,
466+
pre: this.Pre)
470467
.ConfigureAwait(continueOnCapturedContext: false);
471468

472469
return await this

0 commit comments

Comments
 (0)