Fixed an issue where export servers was not adding extension if not specified. #6781
parent
a22b2a6074
commit
2d60bc2800
|
@ -190,6 +190,9 @@ def save():
|
|||
status = False
|
||||
errmsg = None
|
||||
if data['type'] == 'export':
|
||||
file_ext = os.path.splitext(data['filename'])[-1].lower()
|
||||
if file_ext != '.json':
|
||||
data['filename'] = data['filename'] + '.json'
|
||||
status, errmsg = \
|
||||
dump_database_servers(data['filename'], data['selected_sever_ids'])
|
||||
elif data['type'] == 'import':
|
||||
|
|
Loading…
Reference in New Issue