From a08bd18f4ec8b51fa7aea2df9385335a992ae2cc Mon Sep 17 00:00:00 2001
From: Nico Schottelius <nico@kr.ethz.ch>
Date: Wed, 6 Apr 2011 20:59:57 +0200
Subject: [PATCH] make first real use of new __cdist_echo with
 __cdist_object_self setup

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
---
 bin/cdist-object-gencode-run | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/bin/cdist-object-gencode-run b/bin/cdist-object-gencode-run
index a24d78bc..375b7cc1 100755
--- a/bin/cdist-object-gencode-run
+++ b/bin/cdist-object-gencode-run
@@ -27,20 +27,19 @@
 set -eu
 
 __cdist_target_host="$1"; shift
-__cdist_object="$1"; shift
+__cdist_object_self="$1"; shift
 
-__cdist_code_local="$(__cdist_object_code "$__cdist_object")-${__cdist_name_gencode_local}"
-__cdist_code_remote="$(__cdist_object_code "$__cdist_object")-${__cdist_name_gencode_remote}"
+__cdist_code_local="$(__cdist_object_code "$__cdist_object_self")-${__cdist_name_gencode_local}"
+__cdist_code_remote="$(__cdist_object_code "$__cdist_object_self")-${__cdist_name_gencode_remote}"
 
 # FIXME: check that no file is created if there is no gencode
 # probably move output code to cdist-object-gencode
-
-__cdist_echo info "Generating local code for $__cdist_object ..."
-cdist-object-gencode "$__cdist_target_host" "$__cdist_object" \
+__cdist_echo info "Generating local code ..."
+cdist-object-gencode "$__cdist_target_host" "$__cdist_object_self" \
    "${__cdist_name_gencode_local}" > "${__cdist_code_local}"
 
-__cdist_echo info "Generating remote code for $__cdist_object ..."
-cdist-object-gencode "$__cdist_target_host" "$__cdist_object" \
+__cdist_echo info "Generating remote code ..."
+cdist-object-gencode "$__cdist_target_host" "$__cdist_object_self" \
    "${__cdist_name_gencode_remote}" > "${__cdist_code_remote}"
 
 chmod u+x "${__cdist_code_local}" "${__cdist_code_remote}"