Skip to content

Commit e3d386e

Browse files
committed
setting stream type to any if not provided
1 parent 3f12cbe commit e3d386e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/ResourceManager/Automation/Commands.Automation/Cmdlet/GetAzureAutomationDscCompilationJobOutput.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ public class GetAzureAutomationDscCompilationJobOutput : AzureAutomationBaseCmdl
5050
[PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
5151
protected override void AutomationExecuteCmdlet()
5252
{
53+
if (Stream.Equals(StreamType.Progress))
54+
{
55+
Stream = StreamType.Any;
56+
}
57+
5358
var ret = this.AutomationClient.GetDscCompilationJobStream(this.ResourceGroupName, this.AutomationAccountName, this.Id, this.StartTime, this.Stream.ToString());
5459

5560
this.GenerateCmdletOutput(ret);

src/ResourceManager/Automation/Commands.Automation/Common/AutomationClientDSC.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,10 @@ public Model.CompilationJob StartCompilationJob(string resourceGroupName, string
825825
{
826826
listParams.StreamType = streamType;
827827
}
828+
else
829+
{
830+
listParams.StreamType = StreamType.Any.ToString();
831+
}
828832

829833
var jobStreams = this.automationManagementClient.JobStreams.List(resourceGroupName, automationAccountName, jobId, listParams).JobStreams;
830834
return jobStreams.Select(stream => this.CreateJobStreamFromJobStreamModel(stream, automationAccountName, jobId)).ToList();

0 commit comments

Comments
 (0)