File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ function Set-IcingaCacheData()
41
41
$cacheData = Get-IcingaCacheData - Space $Space - CacheStore $CacheStore ;
42
42
} else {
43
43
try {
44
- New-Item - Path $CacheFile - Force | Out-Null ;
44
+ New-Item - ItemType File - Path $CacheFile - Force | Out-Null ;
45
45
} catch {
46
46
Exit-IcingaThrowException - InputString $_.Exception - CustomMessage (Get-IcingaCacheDir ) - StringPattern ' NewItemUnauthorizedAccessError' - ExceptionType ' Permission' - ExceptionThrown $IcingaExceptions.Permission.CacheFolder ;
47
47
Exit-IcingaThrowException - CustomMessage $_.Exception - ExceptionType ' Unhandled' - Force;
@@ -66,4 +66,4 @@ function Set-IcingaCacheData()
66
66
Exit-IcingaThrowException - InputString $_.Exception - CustomMessage (Get-IcingaCacheDir ) - StringPattern ' System.UnauthorizedAccessException' - ExceptionType ' Permission' - ExceptionThrown $IcingaExceptions.Permission.CacheFolder ;
67
67
Exit-IcingaThrowException - CustomMessage $_.Exception - ExceptionType ' Unhandled' - Force;
68
68
}
69
- }
69
+ }
You can’t perform that action at this time.
0 commit comments