foreman-debug archive files have confusing extension: .gz.txt
|Assigned To:||Anurag Patel|
|Found in release:||Pull request:||https://github.com/theforeman/foreman/pull/4515|
|Velocity based estimate||-|
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1374019
Certain log files are archived during a foreman-debug run end up as raw txt files in the debug collection but are named:
this .gz.txt is confusing to the user as it is hard to determine without actually examining the file .. is it TXT or a gzip archive?
If we are uncompressing these we should name them .txt and drop the '.gz'. If we leave them as archives, drop the .txt
Fixes #17749 - Remove confusing .gz.txt extension from logs
Currently .txt extension is appended to log files that are processed
by foreman-debug and added to the debug archive. This is confusing to
This PR gets rid of the .txt extension, and also removes .gz/.bz2/xz
extension from log files that have been uncompressed.