Don't try to remove default datastore

This commit is contained in:
Matt Churchyard
2016-05-29 17:40:40 +01:00
parent 51b47836ff
commit 71f9f90ca1

View File

@@ -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}"