mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
add remove server from networks with api. Add to default network by default.
This commit is contained in:
@@ -29,7 +29,7 @@ var (
|
||||
wcclient nodepb.NodeServiceClient
|
||||
)
|
||||
|
||||
func Install(accesskey string, password string, server string, group string, noauto bool, accesstoken string) error {
|
||||
func Install(accesskey string, password string, server string, group string, noauto bool, accesstoken string, inputname string) error {
|
||||
|
||||
|
||||
tserver := ""
|
||||
@@ -189,6 +189,9 @@ func Install(accesskey string, password string, server string, group string, noa
|
||||
if nodecfg.Name != "" {
|
||||
name = nodecfg.Name
|
||||
}
|
||||
if inputname != "" && inputname != "noname" {
|
||||
name = inputname
|
||||
}
|
||||
fmt.Println(" Name: " + name)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user