Fixed error occurring while dumping the servers from CLI. #6137

This commit is contained in:
Yogesh Mahajan
2023-04-19 16:05:35 +05:30
committed by GitHub
parent 4ede084b8f
commit f1e7782ca2
2 changed files with 5 additions and 2 deletions

View File

@@ -493,8 +493,10 @@ def dump_database_servers(output_file, selected_servers,
object_dict["Servers"] = server_dict
try:
file_path = filename_with_file_manager_path(
unquote(output_file), skip_permission_check=from_setup)
if from_setup:
file_path = unquote(output_file)
else:
file_path = filename_with_file_manager_path(unquote(output_file))
except Exception as e:
return _handle_error(str(e), from_setup)