Stoopid unicode

This commit is contained in:
Jeremie Courreges-Anglas 2018-08-17 16:58:59 +02:00 committed by Denis Cardon
parent 0f9a8ed1da
commit 26c45f3fe6

View File

@ -67,7 +67,7 @@ class backup_pgsql(backup_generic):
else:
stats['log']= "Successfully backuping processed to the following databases :"
stats['status']='List'
cmd = """su - postgres -c 'psql -t -c "SELECT datname FROM pg_database WHERE datistemplate = false;"' 2> /dev/null"""
cmd = """su - postgres -c 'psql -A -t -c "SELECT datname FROM pg_database WHERE datistemplate = false;"' 2> /dev/null"""
self.logger.debug('[%s] List databases: %s',self.backup_name,cmd)
(error_code,output) = ssh_exec(cmd,ssh=self.ssh)
self.logger.debug("[%s] Output of %s :\n%s",self.backup_name,cmd,output)