From 290915ee647c8451066b1abba6cdb572be7b9827 Mon Sep 17 00:00:00 2001
From: Nico Schottelius <nico@kr.ethz.ch>
Date: Wed, 6 Apr 2011 20:34:07 +0200
Subject: [PATCH] __cdist_echo++

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
---
 bin/cdist-cache     | 2 +-
 bin/cdist-deploy-to | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/cdist-cache b/bin/cdist-cache
index f9480162..5ba51442 100755
--- a/bin/cdist-cache
+++ b/bin/cdist-cache
@@ -32,6 +32,6 @@ __cdist_ddir="$(__cdist_host_cache_dir "$__cdist_target_host")"
 # Create base to move into
 mkdir -p "$(__cdist_cache_dir)"
 
-echo "Saving cache to $__cdist_ddir ..."
+__cdist_echo info "Saving cache to $__cdist_ddir ..."
 rm -rf "$__cdist_ddir"
 mv "$__cdist_local_base_dir" "$__cdist_ddir"
diff --git a/bin/cdist-deploy-to b/bin/cdist-deploy-to
index dab5d9a5..ddb36fca 100755
--- a/bin/cdist-deploy-to
+++ b/bin/cdist-deploy-to
@@ -34,7 +34,7 @@ export $__cdist_name_var_target_user="$__cdist_remote_user"
 # Export variables for core, which others do not reset
 export __cdist_local_base_dir
 
-echo "cdist $__cdist_version: Configuring $__cdist_target_host"
+__cdist_echo info "cdist $__cdist_version: Configuring $__cdist_target_host ..."
 
 ################################################################################
 # See cdist-stages(7)
@@ -44,7 +44,7 @@ echo "cdist $__cdist_version: Configuring $__cdist_target_host"
 __cdist_init_deploy           "$__cdist_target_host"
 
 # Transfer cdist executables
-echo "Transferring cdist binaries to $__cdist_target_host ..."
+__cdist_echo info "Transferring cdist binaries to the target host ..."
 cdist-dir push                "$__cdist_target_host" \
    "${__cdist_abs_mydir}" "${__cdist_remote_bin_dir}"
 cdist-explorer-run-global     "$__cdist_target_host"
@@ -53,4 +53,4 @@ cdist-object-all              "$__cdist_target_host" cdist-object-prepare
 cdist-object-all              "$__cdist_target_host" cdist-object-run
 cdist-cache                   "$__cdist_target_host"
 
-echo "cdist $__cdist_version: Successfully finished run on $__cdist_target_host"
+__cdist_echo info "cdist $__cdist_version: Successfully finished run"