Adjust Bitlocker local file name and formatting
This commit is contained in:
parent
893f2bc31a
commit
58925093e3
1 changed files with 2 additions and 2 deletions
|
|
@ -245,9 +245,9 @@ def export_bitlocker_info():
|
|||
file_name = f'{ost.ticket_id}_{ost.ticket_name.replace(" ", "-")}'
|
||||
if not file_name:
|
||||
file_name = input_text(prompt='Enter filename', allow_empty_response=False)
|
||||
file_path = pathlib.Path(f'../../Bitlocker_{file_name}.txt').resolve()
|
||||
file_path = pathlib.Path(f'../../../Bitlocker_{file_name}.txt').resolve()
|
||||
with open(file_path, 'a', encoding='utf-8') as _f:
|
||||
_f.write(f'{output_str}\n\n')
|
||||
_f.write('\n'.join(output_raw))
|
||||
|
||||
# Done
|
||||
pause('\nPress Enter to exit...')
|
||||
|
|
|
|||
Loading…
Reference in a new issue