Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

status.peers() returns string instead of list if only one peer exists #39

Closed
ctheune opened this issue May 19, 2015 · 2 comments
Closed

Comments

@ctheune
Copy link

ctheune commented May 19, 2015

Hi,

I'm currently running some code against a test installation of consul in a single-node vagrant environment. I stumbled over the issue that peers() will return a single string instead of a list in this case:

(Pdb) p connection.status.peers()
2015-05-19 11:03:38,533 INFO [requests.packages.urllib3.connectionpool][Dummy-4] Starting new HTTP connection (1): consul-ext.service.services.vgr.consul.local
u'10.0.2.15:8300'

gmr added a commit that referenced this issue May 20, 2015
@gmr
Copy link
Owner

gmr commented May 20, 2015

Fixed in master, will release a new version soon.

@gmr gmr closed this as completed May 20, 2015
@ctheune
Copy link
Author

ctheune commented May 20, 2015

Awesome, thanks. Sorry for not providing a patch myself - was quite busy yesterday. :)

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

No branches or pull requests

2 participants