mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 00:03:10 +00:00
win_certificate_store - Fix exception handling typo (#52906)
This commit is contained in:
2
changelogs/fragments/win_certificate_store-excp.yaml
Normal file
2
changelogs/fragments/win_certificate_store-excp.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- win_certificate_store - Fix exception handling typo
|
||||
@@ -109,7 +109,7 @@ Function New-CertFile($module, $cert, $path, $type, $password) {
|
||||
$module.FailJson("Failed to write cert to file, cert was null: $($_.Exception.Message)", $_)
|
||||
} catch [System.IO.IOException] {
|
||||
$module.FailJson("Failed to write cert to file due to IO Exception: $($_.Exception.Message)", $_)
|
||||
} catch [System.UnauthorizedAccessException, System>Security.SecurityException] {
|
||||
} catch [System.UnauthorizedAccessException, System.Security.SecurityException] {
|
||||
$module.FailJson("Failed to write cert to file due to permissions: $($_.Exception.Message)", $_)
|
||||
} catch {
|
||||
$module.FailJson("Failed to write cert to file: $($_.Exception.Message)", $_)
|
||||
|
||||
Reference in New Issue
Block a user