################################################################################
# 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
