From 26c45f3fe654882854b9c9211a40509e55670a0b Mon Sep 17 00:00:00 2001 From: Jeremie Courreges-Anglas Date: Fri, 17 Aug 2018 16:58:59 +0200 Subject: [PATCH] Stoopid unicode --- libtisbackup/backup_pgsql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtisbackup/backup_pgsql.py b/libtisbackup/backup_pgsql.py index 49ab969..d85f627 100644 --- a/libtisbackup/backup_pgsql.py +++ b/libtisbackup/backup_pgsql.py @@ -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)