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:   mode http
    option tcplog
  EOF
    (until (curl -sSfLk -m 10 -H 'Accept: text/plain' http://${mesos_leader}/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
  