~ce-hyperscale/charms/precise/haproxy/arm64-trusty

« back to all changes in this revision

Viewing changes to hooks/hooks.py

  • Committer: Marco Ceppi
  • Date: 2013-12-11 21:11:48 UTC
  • mfrom: (70.1.1 haproxy)
  • Revision ID: marco@ceppi.net-20131211211148-526vh6ppw4fd4bln
[marcoceppi] 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,