Skip to content
Snippets Groups Projects
Commit 84638baf authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-816: improved string representation

parent 6fb76ce9
No related branches found
No related tags found
2 merge requests!59Merge LOFAR-Release-4_0 into master,!57Resolve SW-816
......@@ -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):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment