|
|
|
@ -45,18 +45,6 @@ if [ ! -f "$__object/parameter/noparent" ] || [ ! -f "$__object/parameter/nofile |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# Remove legacy blocks created by old versions of this type |
|
|
|
|
# FIXME: remove me in 3.2+ |
|
|
|
|
__block "$__object_name" \ |
|
|
|
|
--file "$file" \ |
|
|
|
|
--prefix "#cdist:$__object_name" \ |
|
|
|
|
--suffix "#/cdist:$__object_name" \ |
|
|
|
|
--state 'absent' \ |
|
|
|
|
--text - << DONE |
|
|
|
|
remove legacy block |
|
|
|
|
DONE |
|
|
|
|
export require="__block/$__object_name" |
|
|
|
|
|
|
|
|
|
_cksum() { |
|
|
|
|
echo "$1" | cksum | cut -d' ' -f 1 |
|
|
|
|
} |
|
|
|
|