Merge "Fix memcached flush if -l is in hostname"

This commit is contained in:
Jenkins 2016-07-06 16:03:08 +00:00 committed by Gerrit Code Review
commit e1015efa33

View File

@ -20,4 +20,4 @@
tasks:
- name: Flush all of the cache in memcached
shell: |
echo 'flush_all' | nc $(awk '/\-l/ {print $2}' /etc/memcached.conf | awk -F, '{ print $1 }') $(awk '/\-p/ {print $2}' /etc/memcached.conf)
echo 'flush_all' | nc $(awk '/^\-l/ {print $2}' /etc/memcached.conf | awk -F, '{ print $1 }') $(awk '/^\-p/ {print $2}' /etc/memcached.conf)