Merge branch 'dev' into feat/onepanelio.core.386-migrations.update

This commit is contained in:
Andrey Melnikov
2020-08-14 14:34:20 -07:00
committed by GitHub
4 changed files with 73 additions and 39 deletions

View File

@@ -137,7 +137,7 @@ func UnaryInterceptor(kubeConfig *v1.Config, db *v1.DB, sysConfig v1.SystemConfi
if dotIndex != -1 {
workspaceAndNamespace := xOriginalAuth[0:dotIndex]
pieces := strings.Split(workspaceAndNamespace, "--")
if len(pieces) > 0 {
if len(pieces) > 1 {
workspaceName := pieces[0]
namespace := pieces[1]