Fix plugin filter - truncate Docker ID to 12 chars

This commit is contained in:
Bryan Boreham committed 2016-06-16 18:03:45 +01:00
1 parent 979df93bff
commit adda1c459c
1 file changed
+1 -1
+1 -1
View File
@@ -271,7 +271,7 @@ check_restart() {
start_suite() {
for host in $HOSTS; do
[ -z "$DEBUG" ] || echo "Cleaning up on $host: removing all containers and resetting weave"
PLUGIN_FILTER=$(docker_on $host inspect -f 'grep -v {{.Id}}' weaveplugin 2>/dev/null) || PLUGIN_FILTER=cat
PLUGIN_FILTER=$(docker_on $host inspect -f 'grep -v {{printf "%.12s" .Id}}' weaveplugin 2>/dev/null) || PLUGIN_FILTER=cat
rm_containers $host $(docker_on $host ps -aq 2>/dev/null | $PLUGIN_FILTER)
weave_on $host reset 2>/dev/null
done