Skip to content
This repository has been archived by the owner on Nov 18, 2017. It is now read-only.

help:the connect info in the recover.conf are "None" #48

Open
abcxiaod opened this issue May 25, 2017 · 0 comments
Open

help:the connect info in the recover.conf are "None" #48

abcxiaod opened this issue May 25, 2017 · 0 comments

Comments

@abcxiaod
Copy link

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"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant