From 84638baf868f03031184a56c291df273822eb54b Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Thu, 19 Sep 2019 12:11:09 +0200 Subject: [PATCH] SW-816: improved string representation --- LCS/PyCommon/dbcredentials.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LCS/PyCommon/dbcredentials.py b/LCS/PyCommon/dbcredentials.py index 55e79a73cbc..ee244daebb0 100644 --- a/LCS/PyCommon/dbcredentials.py +++ b/LCS/PyCommon/dbcredentials.py @@ -69,10 +69,10 @@ class Credentials: self.config = {} def __str__(self): - return "type={type} addr={host}:{port} auth={user}:{password} db={database}".format(**self.__dict__) + return "db={database} addr={host}:{port} auth={user}:{password} type={type}".format(**self.__dict__) def stringWithHiddenPassword(self): - return "type={type} addr={host}:{port} auth={user}:XXXXXX db={database}".format(**self.__dict__) + return "db={database} addr={host}:{port} auth={user}:XXXXXX type={type}".format(**self.__dict__) def pg_connect_options(self): """ -- GitLab