anchor.diff:      fi
   
       local slave_hostname="$1"
  -    local slave_name=$(expr "$1" : '\([A-Za-z0-9]*\)')
  +    local slave_name=$(expr "$1" : '\([A-Za-z0-9\-]*\)')
       shift 1
   
       cat <<EOF
  
positive.code: }
  
  function backend {
    (until (curl -sSfLk -m 10 -H 'Accept: text/plain' http://<%= @mesos_master %>:5050/master/state.json | jq -r .slaves[].hostname); do [ $# -lt 1 ] && return 1 || shift; done) | while read -r txt
    do
      set -- $txt
      if [ $# -lt 1 ]; then
  
negative.code: cronjob=/etc/cron.d/"$name"
  script_path=/usr/local/bin/"$name"
  conf_file=haproxy.cfg
  mesos_leader=$(curl -sSfLk -m 10 -H 'Accept: text/plain' http://<%= @mesos_master %>:5050/master/state.json | jq -r .leader | egrep -o '[0-9\:\.]*')
  
  function main {
    config "$@"
  