Skip to content

Commit b29bf88

Browse files
committed
update code to use list operation
1 parent 0f3ea14 commit b29bf88

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/ServiceManagement/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
<Compile Include="UnitTests\RemoveAzureAutomationCredentialTest.cs" />
103103
<Compile Include="UnitTests\RemoveAzureAutomationModuleTest.cs" />
104104
<Compile Include="UnitTests\RemoveAzureAutomationScheduleTest.cs" />
105+
<Compile Include="UnitTests\RemoveAzureAutomationVariableTest.cs" />
105106
<Compile Include="UnitTests\SetAzureAutomationCredentialTest.cs" />
106107
<Compile Include="UnitTests\SetAzureAutomationScheduleTest.cs" />
107108
<Compile Include="UnitTests\GetAzureAutomationVariableTest.cs" />

src/ServiceManagement/Automation/Commands.Automation/Common/AutomationClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public IEnumerable<Variable> ListVariables(string automationAccountName)
309309
skipToken =>
310310
{
311311
var response = this.automationManagementClient.Variables.List(
312-
automationAccountName);
312+
automationAccountName, skipToken);
313313
return new ResponseWithSkipToken<AutomationManagement.Models.Variable>(
314314
response, response.Variables);
315315
});
@@ -320,7 +320,7 @@ public IEnumerable<Variable> ListVariables(string automationAccountName)
320320
skipToken =>
321321
{
322322
var response = this.automationManagementClient.EncryptedVariables.List(
323-
automationAccountName);
323+
automationAccountName, skipToken);
324324
return new ResponseWithSkipToken<AutomationManagement.Models.EncryptedVariable>(
325325
response, response.EncryptedVariables);
326326
});
@@ -507,7 +507,7 @@ public IEnumerable<Credential> ListCredentials(string automationAccountName)
507507
IList<AutomationManagement.Models.Credential> credentialModels = AutomationManagementClient.ContinuationTokenHandler(
508508
skipToken =>
509509
{
510-
var response = this.automationManagementClient.PsCredentials.List(automationAccountName);
510+
var response = this.automationManagementClient.PsCredentials.List(automationAccountName, skipToken);
511511
return new ResponseWithSkipToken<AutomationManagement.Models.Credential>(
512512
response, response.Credentials);
513513
});

0 commit comments

Comments
 (0)