Skip to content

Commit 2959e5f

Browse files
committed
Fix build issue
1 parent 1916cd8 commit 2959e5f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/ResourceManager/ResourceManager/Commands.ResourceManager/Cmdlets/Extensions/HttpMessageExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ public static async Task<T> ReadContentAsJsonAsync<T>(this HttpResponseMessage m
5151
}
5252
}
5353

54-
{
5554
/// <summary>
5655
/// Reads the JSON content from the http response message.
5756
/// </summary>

src/ResourceManager/ResourceManager/Commands.ResourceManager/Cmdlets/Implementation/SetAzureResourceCmdlet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ protected override void OnProcessRecord()
123123
var activity = string.Format("{0} {1}", this.ShouldUsePatchSemantics() ? "PATCH" : "PUT", managementUri.PathAndQuery);
124124
var result = this.GetLongRunningOperationTracker(activityName: activity, isResourceCreateOrUpdate: true)
125125
.WaitOnOperation(operationResult: operationResult);
126-
127-
this.WriteObject(result.ToResource().ToPsObject(this.OutputObjectFormat.Value));
126+
127+
this.TryConvertAndWriteObject(result, this.OutputObjectFormat.Value);
128128
});
129129
}
130130

0 commit comments

Comments
 (0)