Blame SOURCES/0025-postgresql-avoid-to-crash-with-numerical-passwords.patch

0cd6dc
From 067508239b7e1237f696fbe4a2b1484e6f720ebd Mon Sep 17 00:00:00 2001
0cd6dc
From: Sandro Bonazzola <sbonazzo redhat com>
0cd6dc
Date: Mon, 15 Dec 2014 17:53:57 +0000
0cd6dc
Subject: [PATCH 25/93] [postgresql] avoid to crash with numerical passwords
0cd6dc
0cd6dc
Signed-off-by: Sandro Bonazzola <sbonazzo redhat com>
0cd6dc
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
0cd6dc
---
0cd6dc
 sos/plugins/postgresql.py | 2 +-
0cd6dc
 1 file changed, 1 insertion(+), 1 deletion(-)
0cd6dc
0cd6dc
diff --git a/sos/plugins/postgresql.py b/sos/plugins/postgresql.py
0cd6dc
index 350131f..0a51074 100644
0cd6dc
--- a/sos/plugins/postgresql.py
0cd6dc
+++ b/sos/plugins/postgresql.py
0cd6dc
@@ -51,7 +51,7 @@ class PostgreSQL(Plugin):
0cd6dc
         # is no need to save and restore environment variables if the user
0cd6dc
         # decided to pass the password on the command line.
0cd6dc
         if self.get_option("password") is not False:
0cd6dc
-            os.environ["PGPASSWORD"] = self.get_option("password")
0cd6dc
+            os.environ["PGPASSWORD"] = str(self.get_option("password"))
0cd6dc
 
0cd6dc
         if self.get_option("dbhost"):
0cd6dc
             cmd = "pg_dump -U %s -h %s -p %s -w -f %s -F t %s" % (
0cd6dc
-- 
0cd6dc
1.9.3
0cd6dc