]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commit
ceph-windows: Cleanup collect-event-logs.ps1 script
authorIonut Balutoiu <ibalutoiu@cloudbasesolutions.com>
Thu, 16 Feb 2023 17:30:59 +0000 (19:30 +0200)
committerIonut Balutoiu <ibalutoiu@cloudbasesolutions.com>
Thu, 16 Feb 2023 17:30:59 +0000 (19:30 +0200)
commit65ac373473147698f875b871dbb9102a6041db4f
tree60d72f1fb33388870faf0bbcaba0e8dca8a636b0
parent492fc6e01826bd26bf988048ca3dc3ec7ddb3ebf
ceph-windows: Cleanup collect-event-logs.ps1 script

* Rely on the default `$ErrorActionPreference` value (which is `Continue`).
* Add new function `SanitizeName` that it's used to sanitize the name of the log files.
  The function code existed before, but it was duplicated in the script.
* General PowerShell code cleanup.

Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
scripts/ceph-windows/collect-event-logs.ps1