mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Improved code styling
This commit is contained in:
parent
f41b029afa
commit
22d0ed33b5
3 changed files with 1 additions and 3 deletions
|
|
@ -1,7 +1,6 @@
|
|||
function Get-IcingaServiceUser()
|
||||
{
|
||||
$Services = Get-IcingaServices -Service 'icinga2';
|
||||
|
||||
if ($null -eq $Services) {
|
||||
throw 'Icinga Service not installed';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ function Test-IcingaAcl()
|
|||
$ServiceUser = Get-IcingaServiceUser;
|
||||
$UserFound = $FALSE;
|
||||
$HasAccess = $FALSE;
|
||||
|
||||
foreach ($user in $FolderACL.Access) {
|
||||
# Not only check here for the exact name but also for included strings like NT AU or NT-AU or even further later on
|
||||
# As the Get-Acl Cmdlet will translate usernames into the own language, resultng in 'NT AUTHORITY\NetworkService' being translated
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ function Get-IcingaServices()
|
|||
{
|
||||
param (
|
||||
[array]$Service
|
||||
)
|
||||
);
|
||||
|
||||
$ServiceInformation = Get-Service -Name $Service -ErrorAction SilentlyContinue;
|
||||
$ServiceWmiInfo = $null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue