Fixed an issue where taking backup of a shared server was using server owner's user name. #7255

This commit is contained in:
Pravesh Sharma 2024-03-26 11:28:20 +05:30 committed by GitHub
parent e99fc02f9e
commit 1bcf343ceb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1144,7 +1144,7 @@ class ServerNode(PGChildNodeView):
con_info_ord = OrderedDict([('host', server.host),
('port', server.port),
('dbname', db_name),
('user', server.username)])
('user', manager.user)])
con_info_ord.update(con_info)
display_conn_string = make_conninfo(**con_info_ord)
return display_conn_string

View File

@ -221,7 +221,7 @@ def _get_args_params_values(data, conn, backup_obj_type, backup_file, server,
'--port',
port,
'--username',
server.username,
manager.user,
'--no-password'
]