Skip to content

Use consul.health.service()#13

Merged
geek merged 6 commits intoautopilotpattern:masterfrom
sberryman:issue-12
Apr 6, 2017
Merged

Use consul.health.service()#13
geek merged 6 commits intoautopilotpattern:masterfrom
sberryman:issue-12

Conversation

@sberryman
Copy link
Copy Markdown
Contributor

Fixes #12

Also upgrade python dependencies and containerpilot to 2.7.2

PyMongo -> 3.4.0
python-Consul -> 0.7.0
Don’t have `CONSUL_AGENT=1` implemented to make this optional so force
localhost
Departure from consul.agent.services().
Fixes autopilotpattern#12
Comment thread bin/manage.py Outdated
from pymongo.errors import *

consul = pyconsul.Consul(host=os.environ.get('CONSUL', 'consul'))
consul = pyconsul.Consul(host='localhost')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will likely need to make the consul agent optional in the future, can you revert this change.

@geek
Copy link
Copy Markdown
Contributor

geek commented Apr 6, 2017

@sberryman LTGM, just one question on manage.py

@sberryman
Copy link
Copy Markdown
Contributor Author

@geek I've added CONSUL_AGENT to the containerpilot.json and updated the manage.py to account for it

@geek geek added this to the 3.4-r1.1.1 milestone Apr 6, 2017
@geek geek self-assigned this Apr 6, 2017
@geek geek merged commit 69cc5e5 into autopilotpattern:master Apr 6, 2017
@geek
Copy link
Copy Markdown
Contributor

geek commented Apr 6, 2017

@sberryman thanks for the help, I'll get this released shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants