Skip to content

Commit 4335115

Browse files
committed
Renames uninstaller arg Component to Name
1 parent 7d3ac7e commit 4335115

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/core/framework/Uninstall-IcingaForWindows.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function Uninstall-IcingaForWindows()
5555
foreach ($module in $ModuleList.Name) {
5656
[string]$ModuleName = $module.Replace('icinga-powershell-', '');
5757

58-
if ((Uninstall-IcingaFrameworkComponent -Component $ModuleName)) {
58+
if ((Uninstall-IcingaFrameworkComponent -Name $ModuleName)) {
5959
continue;
6060
}
6161

lib/core/framework/Uninstall-IcingaFrameworkComponent.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.FUNCTIONALITY
99
Uninstalls a specific module within the icinga-powershell-* namespace
1010
inside your PowerShell module folder
11-
.PARAMETER Component
11+
.PARAMETER Name
1212
The component you want to uninstall, like 'plugins' or 'mssql'
1313
.INPUTS
1414
System.String
@@ -21,11 +21,11 @@
2121
function Uninstall-IcingaFrameworkComponent()
2222
{
2323
param (
24-
[string]$Component
24+
[string]$Name = ''
2525
);
2626

2727
$ModuleBase = Get-IcingaFrameworkRootPath;
28-
$UninstallComponent = [string]::Format('icinga-powershell-{0}', $Component);
28+
$UninstallComponent = [string]::Format('icinga-powershell-{0}', $Name);
2929
$UninstallPath = Join-Path -Path $ModuleBase -ChildPath $UninstallComponent;
3030

3131
if ((Test-Path $UninstallPath) -eq $FALSE) {

0 commit comments

Comments
 (0)