mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Merge pull request #217 from bieba/master
fixes new-item asking for input type
This commit is contained in:
commit
a504aa3704
1 changed files with 2 additions and 2 deletions
2
lib/core/cache/Set-IcingaCacheData.psm1
vendored
2
lib/core/cache/Set-IcingaCacheData.psm1
vendored
|
|
@ -41,7 +41,7 @@ function Set-IcingaCacheData()
|
|||
$cacheData = Get-IcingaCacheData -Space $Space -CacheStore $CacheStore;
|
||||
} else {
|
||||
try {
|
||||
New-Item -Path $CacheFile -Force | Out-Null;
|
||||
New-Item -ItemType File -Path $CacheFile -Force | Out-Null;
|
||||
} catch {
|
||||
Exit-IcingaThrowException -InputString $_.Exception -CustomMessage (Get-IcingaCacheDir) -StringPattern 'NewItemUnauthorizedAccessError' -ExceptionType 'Permission' -ExceptionThrown $IcingaExceptions.Permission.CacheFolder;
|
||||
Exit-IcingaThrowException -CustomMessage $_.Exception -ExceptionType 'Unhandled' -Force;
|
||||
|
|
|
|||
Loading…
Reference in a new issue