__docker_swarm: Fix for Docker 19.03

This commit is contained in:
lubo 2019-08-23 11:28:13 +02:00
parent 6c780c24c7
commit 451dfaffe4

View file

@ -18,4 +18,4 @@
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
#
docker info 2>/dev/null | grep "^Swarm: " | cut -d " " -f 2-
docker info 2>/dev/null | grep '^ *Swarm: ' | awk '{print $2}'