diff --git a/cdist/conf/type/__rsync/gencode-local b/cdist/conf/type/__rsync/gencode-local index 6df79c97..7d688115 100644 --- a/cdist/conf/type/__rsync/gencode-local +++ b/cdist/conf/type/__rsync/gencode-local @@ -4,7 +4,7 @@ remote_user=$(cat "$__object/parameter/remote-user") if [ -f "$__object/parameter/destination" ]; then destination=$(cat "$__object/parameter/destination") else - destination="$__object_id" + destination="/$__object_id" fi set -- diff --git a/cdist/conf/type/__rsync/gencode-remote b/cdist/conf/type/__rsync/gencode-remote index 93125112..f8d85313 100644 --- a/cdist/conf/type/__rsync/gencode-remote +++ b/cdist/conf/type/__rsync/gencode-remote @@ -1,7 +1,7 @@ if [ -f "$__object/parameter/destination" ]; then destination=$(cat "$__object/parameter/destination") else - destination="$__object_id" + destination="/$__object_id" fi ownergroup=""