Skip to content

Commit 8e7fb19

Browse files
committed
Env password is no longer used since #361
1 parent a67d800 commit 8e7fb19

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

dbbackup/db/postgresql.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ class PgDumpConnector(BaseCommandDBConnector):
3838
single_transaction = True
3939
drop = True
4040

41-
def run_command(self, *args, **kwargs):
42-
if self.settings.get('PASSWORD'):
43-
env = kwargs.get('env', {})
44-
env['PGPASSWORD'] = utils.get_escaped_command_arg(self.settings['PASSWORD'])
45-
kwargs['env'] = env
46-
return super(PgDumpConnector, self).run_command(*args, **kwargs)
47-
4841
def _create_dump(self):
4942
cmd = '{} '.format(self.dump_cmd)
5043
cmd = cmd + create_postgres_uri(self)

0 commit comments

Comments
 (0)