~marcoceppi/charms/precise/haproxy/cfg-changed-fix

« back to all changes in this revision

Viewing changes to hooks/hooks.py

  • Committer: Marco Ceppi
  • Date: 2013-12-11 04:14:19 UTC
  • Revision ID: marco@ceppi.net-20131211041419-vjcpnlqo1e7nq1nh
Don't proceed if there are no services available

Show diffs side-by-side

added added

removed removed

Lines of Context:
727
727
    else:
728
728
        haproxy_monitoring = None
729
729
    remove_services()
730
 
    create_services()
 
730
    if not create_services():
 
731
        sys.exit()
731
732
    haproxy_services = load_services()
732
733
    update_sysctl(config_data)
733
734
    construct_haproxy_config(haproxy_globals,