From 46c6b144976aa6be442c4bb1b57f4af0c8029889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20M=C3=BCller?= Date: Thu, 7 Sep 2017 13:48:01 +0200 Subject: [PATCH] Remove unnecessary refreshonly flag from remove container exec The refreshonly flag tells puppet to only execute the command of an exec resource when something has "changed". But there is no notify that tells this exec that something has changed so with the refreshonly flag the command will be never executed. --- manifests/run.pp | 1 - 1 file changed, 1 deletion(-) diff --git a/manifests/run.pp b/manifests/run.pp index 74ddbae17..f7c1d222e 100755 --- a/manifests/run.pp +++ b/manifests/run.pp @@ -313,7 +313,6 @@ exec { "remove container ${service_prefix}${sanitised_title}": command => "${docker_command} rm -v ${sanitised_title}", - refreshonly => true, onlyif => "${docker_command} ps --no-trunc -a --format='table {{.Names}}' | grep '^${sanitised_title}$'", path => ['/bin', '/usr/bin'], environment => 'HOME=/root',