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

Python 3, PEP-8, docs, and more #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

codekoala
Copy link

I've done a fair mount of refactoring to the script here. Some of the highlights:

  • less dependent upon a specific filesystem layout
  • should work with both Python 2 and 3 now
  • reduced redundancy in a few places
  • added a check to see if haproxy is installed before running
  • restarting haproxy directly with the subprocess.call function, rather than using it to call a shell script
  • some PEP-8 items
  • lots of docstrings... I hope they're accurate enough for you

- more flexible shebang
- restart haproxy directly rather than using shell script
- check that haproxy is installed and on the PATH before running
- more docs
- connect to etcd once
- created main() function
- simplified main procedure
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

Successfully merging this pull request may close these issues.

1 participant