mirror of
https://github.com/churchers/vm-bhyve.git
synced 2026-01-04 12:03:44 +01:00
switch::vale::create broken - switch name is not passed as an argument
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user