Fix delete for api-sessions and sessions from ziti CLI

This commit is contained in:
Paul Lorenz
2020-10-09 11:12:13 -04:00
parent ef8f163395
commit 8a4752a111
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -2,15 +2,15 @@ module github.com/openziti/ziti
go 1.14
replace github.com/openziti/foundation => ../foundation
// replace github.com/openziti/foundation => ../foundation
// replace github.com/michaelquigley/dilithium => ../../q/research/dilithium
replace github.com/openziti/fabric => ../fabric
// replace github.com/openziti/fabric => ../fabric
// replace github.com/openziti/sdk-golang => ../sdk-golang
replace github.com/openziti/edge => ../edge
// replace github.com/openziti/edge => ../edge
require (
github.com/Jeffail/gabs v1.4.0
@@ -28,7 +28,7 @@ require (
github.com/keybase/go-ps v0.0.0-20190827175125-91aafc93ba19
github.com/michaelquigley/pfxlog v0.0.0-20190813191113-2be43bd0dccc
github.com/openziti/edge v0.16.38
github.com/openziti/fabric v0.14.8
github.com/openziti/fabric v0.14.9-0.20201009024557-3768481c8198
github.com/openziti/foundation v0.14.8
github.com/openziti/sdk-golang v0.13.52
github.com/pborman/uuid v1.2.0
+1 -1
View File
@@ -96,7 +96,7 @@ func newDeleteCmdForEntityType(entityType string, command deleteCmdRunner, optio
func runDeleteEntityOfType(o *commonOptions, entityType string) error {
var err error
ids := []string{o.Args[0]}
if entityType != "terminators" {
if entityType != "terminators" && entityType != "api-sessions" && entityType != "sessions" {
ids, err = mapNamesToIDs(entityType, o.Args[0])
}
if err != nil {