Skip to content

Commit 16c8981

Browse files
trim whitespaces on the input action string for Get-AzureProviderOperation cmdlet
1 parent 8475dbe commit 16c8981

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ResourceManager/Resources/Commands.Resources/Providers/GetAzureProviderOperationCmdlet.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.Resources
1919
using System.Linq;
2020
using System.Management.Automation;
2121
using Microsoft.Azure.Commands.Resources.Models;
22-
using Microsoft.Azure.Management.Resources.Models;
22+
using Microsoft.Azure.Management.Resources.Models;
2323

2424
/// <summary>
2525
/// Get an existing resource.
@@ -41,6 +41,9 @@ public class GetAzureProviderOperationCommand : ResourcesBaseCmdlet
4141
/// </summary>
4242
public override void ExecuteCmdlet()
4343
{
44+
// remove leading and trailing whitespaces
45+
this.ActionString = this.ActionString.Trim();
46+
4447
List<PSResourceProviderOperation> operationsToDisplay;
4548

4649
if (this.ActionString.Contains(WildCardCharacter))

0 commit comments

Comments
 (0)