You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 18, 2017. It is now read-only.
primary_conninfo = 'user=None password=None host=None port=None sslmode=prefer sslcompression=1'
the connect info has "None"
After I have debug the function write_recovery_conf of postgresql.py:
{
leader = urlparse(leader_hash["address"])
f.write("""
primary_conninfo = 'user=%(user)s password=%(password)s host=%(hostname)s port=%(port)s sslmode=prefer sslcompression=1'
""" % {"user": leader.username, "password": leader.password, "hostname": leader.hostname, "port": leader.port})
}
The debug info:
leader_hash["address"]==>postgres://repmgr:[email protected]:5432/postgres
leader==>ParseResult(scheme='postgres', netloc='',
path='//repmgr:[email protected]:5432/postgres', params='', query='', fragment='')
so : the leader.username is "None"
The text was updated successfully, but these errors were encountered: