Improved code styling

This commit is contained in:
Lord Hepipud 2019-10-06 18:06:41 +02:00
parent ffd3cf5644
commit d843ded4f7
3 changed files with 1 additions and 3 deletions

View file

@ -1,7 +1,6 @@
function Get-IcingaServiceUser()
{
$Services = Get-IcingaServices -Service 'icinga2';
if ($null -eq $Services) {
throw 'Icinga Service not installed';
}

View file

@ -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

View file

@ -2,7 +2,7 @@ function Get-IcingaServices()
{
param (
[array]$Service
)
);
$ServiceInformation = Get-Service -Name $Service -ErrorAction SilentlyContinue;
$ServiceWmiInfo = $null;