mirror of
https://github.com/churchers/vm-bhyve.git
synced 2026-01-04 12:03:44 +01:00
Don't try to remove default datastore
This commit is contained in:
@@ -124,6 +124,8 @@ __datastore_add(){
|
||||
__datastore_remove(){
|
||||
local _name="$1"
|
||||
|
||||
[ "${_name}" = "default" ] && __err "cannot remove default datastore"
|
||||
|
||||
__datastore_get "${_name}" || __err "unable to locate the specified dataset"
|
||||
|
||||
__config_core_remove "datastore_list" "${_name}"
|
||||
|
||||
Reference in New Issue
Block a user