~mbruzek/charms/precise/haproxy/trunk

« back to all changes in this revision

Viewing changes to hooks/hooks.py

  • Committer: Mark Mims
  • Date: 2013-06-03 23:13:28 UTC
  • mfrom: (66.1.1 safe_dump)
  • Revision ID: mark.mims@canonical.com-20130603231328-813th22xn6z4qha6
mergingĀ lp:~davidpbritton/charms/precise/haproxy/trunkĀ 

Show diffs side-by-side

added added

removed removed

Lines of Context:
708
708
        my_host = socket.gethostname()
709
709
    subprocess.call(
710
710
            ['relation-set', 'port=%d' % my_port, 'hostname=%s' % my_host,
711
 
             'all_services=%s' % yaml.dump(get_all_services())])
 
711
             'all_services=%s' % yaml.safe_dump(get_all_services())])
712
712
    if hook_name == "changed":
713
713
        if 'is-proxy' in relation_data:
714
714
            service_name = "%s__%d" % \