diff --git a/cdist/conf/type/__consul/gencode-remote b/cdist/conf/type/__consul/gencode-remote
index 67dbf408..f4378bd9 100755
--- a/cdist/conf/type/__consul/gencode-remote
+++ b/cdist/conf/type/__consul/gencode-remote
@@ -51,10 +51,11 @@ cat << eof
     if [ "\$cksum_is" = "$cksum_should" ]; then
         chown root:root "$destination"
         chmod 755 "$destination"
-        echo "__consul/usr/local/bin/consul" >> "$__messages_out"
     else
         rm -f "$destination"
         echo "Failed to verify checksum for $__object_name" >&2
         exit 1
     fi
 eof
+
+echo "__consul/usr/local/bin/consul" >> "$__messages_out"