switch::vale::create broken - switch name is not passed as an argument

This commit is contained in:
Matt Churchyard
2018-06-21 13:40:49 +00:00
parent 9a908b95fc
commit f720c67791
3 changed files with 2 additions and 3 deletions

View File

@@ -111,7 +111,7 @@ switch::create(){
_switch="$1"
# check for a valid switch name
core::check_name "${_switch}" || util::err "invalid switch name - '${_name}'"
core::check_name "${_switch}" || util::err "invalid switch name - '${_switch}'"
# make sure it's not an existing name
config::core::get "_list" "switch_list"

View File

@@ -43,7 +43,6 @@ switch::vale::show(){
# @param string _switch the name of the switch
#
switch::vale::create(){
local _switch="$1"
config::core::set "switch_list" "${_switch}" "1"
config::core::set "type_${_switch}" "vale"

2
vm
View File

@@ -25,7 +25,7 @@
# POSSIBILITY OF SUCH DAMAGE.
VERSION=1.2
VERSION_INT=102051
VERSION_INT=102052
VERSION_BSD=$(uname -K)
PATH=${PATH}:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin