Stoopid unicode
This commit is contained in:
parent
0f9a8ed1da
commit
26c45f3fe6
@ -67,7 +67,7 @@ class backup_pgsql(backup_generic):
|
|||||||
else:
|
else:
|
||||||
stats['log']= "Successfully backuping processed to the following databases :"
|
stats['log']= "Successfully backuping processed to the following databases :"
|
||||||
stats['status']='List'
|
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)
|
self.logger.debug('[%s] List databases: %s',self.backup_name,cmd)
|
||||||
(error_code,output) = ssh_exec(cmd,ssh=self.ssh)
|
(error_code,output) = ssh_exec(cmd,ssh=self.ssh)
|
||||||
self.logger.debug("[%s] Output of %s :\n%s",self.backup_name,cmd,output)
|
self.logger.debug("[%s] Output of %s :\n%s",self.backup_name,cmd,output)
|
||||||
|
Loading…
Reference in New Issue
Block a user