f6de6d8957
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
14 lines
427 B
Text
14 lines
427 B
Text
################################################################################
|
|
# Default settings
|
|
#
|
|
|
|
format=qcow2
|
|
[ -f "$__object/parameter/format" ] && format="$(cat "$__object/parameter/format")"
|
|
[ -f "$__object/parameter/state" ] && state="$(cat "$__object/parameter/state")"
|
|
|
|
vm="/$__object_id"
|
|
|
|
# Absent is ensured by __file, present by gencode-remote
|
|
if [ "$state" = "absent" ]; then
|
|
__file "$vm" --state absent
|
|
fi
|