Skip to content

Commit 0739af6

Browse files
committed
fix formating
1 parent 94819e3 commit 0739af6

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,29 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
1212
[OutputType(typeof(HybridRunbookWorkerGroup))]
1313
public class GetAzureAutomationHybridWorkerGroup : AzureAutomationBaseCmdlet
1414
{
15-
[Parameter(ParameterSetName = AutomationCmdletParameterSets.ByName,Position = 2, Mandatory = false, ValueFromPipeline = true, HelpMessage = "The Hybrid Runbook Worker Group Name")]
15+
[Parameter(ParameterSetName = AutomationCmdletParameterSets.ByName,Position = 2, Mandatory = false, ValueFromPipeline = true, HelpMessage = "The Hybrid Runbook Worker Group name")]
1616
[Alias("Group")]
1717
public string Name { get; set; }
1818

1919
protected override void AutomationProcessRecord()
2020
{
21-
IEnumerable<HybridRunbookWorkerGroup> ret = null;
2221
if (this.ParameterSetName == AutomationCmdletParameterSets.ByName)
2322
{
23+
IEnumerable<HybridRunbookWorkerGroup> ret = null;
2424
ret = new List<HybridRunbookWorkerGroup> {
2525

2626
this.AutomationClient.GetHybridRunbookWorkerGroup(this.ResourceGroupName, this.AutomationAccountName, this.Name)
27-
};
27+
};
2828
this.GenerateCmdletOutput(ret);
2929
}
3030
else if(this.ParameterSetName == AutomationCmdletParameterSets.ByAll)
3131
{
3232
var nextLink = string.Empty;
3333
do
3434
{
35-
var results1 = this.AutomationClient.ListHybridRunbookWorkerGroups(this.ResourceGroupName, this.AutomationAccountName, ref nextLink);
36-
// ret = this.AutomationClient.ListHybridRunbookWorkerGroups(this.ResourceGroupName, this.AutomationAccountName, ref nextLink);
37-
38-
this.GenerateCmdletOutput(results1);
35+
var results = this.AutomationClient.ListHybridRunbookWorkerGroups(this.ResourceGroupName, this.AutomationAccountName, ref nextLink);
36+
this.GenerateCmdletOutput(results);
3937
}while (!string.IsNullOrEmpty(nextLink));
40-
4138
}
4239
}
4340
}

src/ResourceManager/Automation/Commands.Automation/Model/HybridRunbookWorker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public HybridRunbookWorker(string ipAddress, string name, DateTimeOffset registr
1616
{
1717
this.IpAddress = ipAddress;
1818
this.Name = name;
19-
this.RegistrationDateTime = registrationDataTime;
19+
this.RegistrationTime = registrationDataTime;
2020
}
2121
public string IpAddress { get; set; }
2222
//
@@ -26,7 +26,7 @@ public HybridRunbookWorker(string ipAddress, string name, DateTimeOffset registr
2626
//
2727
// Summary:
2828
// Optional. Gets or sets the registration time of the worker machine.
29-
public DateTimeOffset RegistrationDateTime { get; set; }
29+
public DateTimeOffset RegistrationTime { get; set; }
3030

3131
}
3232
}

0 commit comments

Comments
 (0)