Skip to content

Commit 35edea9

Browse files
swapping byall and byfrom
1 parent 73a750a commit 35edea9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/ServiceManagement/Automation/Commands.Automation/Cmdlet/GetAzureAutomationRunbook.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ public class GetAzureAutomationRunbook : AzureAutomationBaseCmdlet
4242
protected override void AutomationExecuteCmdlet()
4343
{
4444
IEnumerable<Runbook> ret = null;
45-
if (this.ParameterSetName == AutomationCmdletParameterSets.ByAll)
45+
if (this.ParameterSetName == AutomationCmdletParameterSets.ByName)
4646
{
4747
ret = new List<Runbook>
4848
{
4949
this.AutomationClient.GetRunbook(this.AutomationAccountName, this.Name)
5050
};
5151
}
52-
else if (this.ParameterSetName == AutomationCmdletParameterSets.ByName)
52+
else if (this.ParameterSetName == AutomationCmdletParameterSets.ByAll)
5353
{
5454
ret = this.AutomationClient.ListRunbooks(this.AutomationAccountName);
5555
}

src/ServiceManagement/Automation/Commands.Automation/Properties/Resources.resx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@
121121
<value>The Automation account was not found.</value>
122122
<comment>Automation</comment>
123123
</data>
124+
<data name="RunbookNotFound" xml:space="preserve">
125+
<value>The Runbook was not found. Runbook name: {0}.</value>
126+
<comment>Autmation</comment>
127+
</data>
124128
<data name="ScheduleNotFound" xml:space="preserve">
125129
<value>The schedule was not found. Schedule name: {0}.</value>
126130
<comment>Automation</comment>

0 commit comments

Comments
 (0)