mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-25 16:44:01 +08:00
fixing cmd call
This commit is contained in:
parent
5c3bcbc32a
commit
6957006e75
1 changed files with 3 additions and 5 deletions
|
@ -93,12 +93,10 @@ func RemoveNetwork(network string) (bool, error) {
|
|||
log.Println("could not find " + netclientPath + "netclient")
|
||||
return false, err
|
||||
}
|
||||
cmdoutput, err := local.RunCmd(netclientPath + "netclient leave -n " + network)
|
||||
if err != nil {
|
||||
log.Println(string(cmdoutput))
|
||||
return false, err
|
||||
_, err = local.RunCmd(netclientPath+"netclient leave -n "+network, true)
|
||||
if err == nil {
|
||||
log.Println("Server removed from network " + network)
|
||||
}
|
||||
log.Println("Server removed from network " + network)
|
||||
return true, err
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue