Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
isra-fel committed Mar 24, 2022
1 parent 6b8dd58 commit 8a59c0e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/Accounts/Accounts/Config/ConfigCommandBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
using Microsoft.Azure.Commands.Common.Exceptions;
using Microsoft.Azure.Commands.ResourceManager.Common;
using Microsoft.Azure.PowerShell.Common.Config;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;

namespace Microsoft.Azure.Commands.Common.Authentication.Config
{
[CmdletPreview("The cmdlet group \"AzConfig\" is in preview. Feedback is welcome: https://github.com/Azure/azure-powershell/discussions")]
public abstract class ConfigCommandBase : AzureRMCmdlet
{
private readonly RuntimeDefinedParameterDictionary _dynamicParameters = new RuntimeDefinedParameterDictionary();
Expand Down
6 changes: 3 additions & 3 deletions src/Accounts/Accounts/Config/UpdateConfigCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public override void ExecuteCmdlet()
return;
}
base.ConfirmAction(
string.Format(ProcessMessage, AppliesTo, string.Join(", ", configsFromInput.Select(x => x.Key))),
ProcessTarget,
() => UpdateConfigs(configsFromInput));
string.Format(ProcessMessage, AppliesTo, string.Join(", ", configsFromInput.Select(x => x.Key))),
ProcessTarget,
() => UpdateConfigs(configsFromInput));
}

private void UpdateConfigs(IEnumerable<(string, object)> configsToUpdate)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using System.Management.Automation;

namespace Microsoft.Azure.Commands.Common.Authentication.Config
{
/// <summary>
Expand Down
6 changes: 3 additions & 3 deletions src/Accounts/Authentication/Config/Models/PSConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
// ----------------------------------------------------------------------------------

using Microsoft.Azure.PowerShell.Common.Config;
using System;
using System.Diagnostics;
using System.Text.RegularExpressions;

/// <summary>
/// The output model of config-related cmdlets.
/// </summary>
namespace Microsoft.Azure.Commands.Common.Authentication.Config
{
public class PSConfig
Expand Down

0 comments on commit 8a59c0e

Please sign in to comment.