Skip to content

Commit 4ae92fa

Browse files
committed
address comments
1 parent f3b8b53 commit 4ae92fa

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ProviderTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function Test-AzureProvider-WithZoneMappings
8282
function Test-AzureProviderOperation
8383
{
8484
# Get all operations by all providers
85-
$allActions = Get-AzureRmProviderOperation *
85+
$allActions = Get-AzureRmProviderOperation
8686
Assert-True { $allActions.Length -gt 0 }
8787

8888
# Get all operations of microsoft.insights provider

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,13 @@ public class GetAzureProviderOperationCommand : ResourcesBaseCmdlet
4040
[Parameter(Position = 0, Mandatory = false, ValueFromPipelineByPropertyName = false, ValueFromPipeline = true, HelpMessage = "The action string.")]
4141
[Alias("Name")]
4242
[ValidateNotNullOrEmpty]
43-
public string OperationSearchString { get; set; }
43+
public string OperationSearchString { get; set; } = "*";
4444

4545
/// <summary>
4646
/// Executes the cmdlet
4747
/// </summary>
4848
public override void ExecuteCmdlet()
4949
{
50-
if (OperationSearchString == null)
51-
{
52-
OperationSearchString = "*";
53-
}
54-
5550
// remove leading and trailing whitespaces
5651
this.OperationSearchString = this.OperationSearchString.Trim();
5752

0 commit comments

Comments
 (0)