Skip to content

Commit

Permalink
KIALI-2148 fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
xeviknal committed Jan 28, 2019
1 parent ae2c1f1 commit 570b3a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 7 additions & 2 deletions status/mtls_status.go
Expand Up @@ -4,6 +4,11 @@ import (
"github.com/kiali/kiali/business"
)

const (
GloballyEnabled = "GLOBALLY_ENABLED"
NotGloballyEnabled = "NOT_GLOBALLY_ENABLED"
)

func (si *StatusInfo) getmTLSStatus() {
// Get business layer
business, err := business.Get()
Expand All @@ -17,9 +22,9 @@ func (si *StatusInfo) getmTLSStatus() {
Put(ClusterMTLS, "error")
}

status := "Not globally enabled"
status := NotGloballyEnabled
if isGlobalmTLSEnabled {
status = "Globally enabled"
status = GloballyEnabled
}

Put(ClusterMTLS, status)
Expand Down
4 changes: 0 additions & 4 deletions status/status.go
Expand Up @@ -80,7 +80,3 @@ func Get() (status StatusInfo) {
getVersions()
return info
}

func getMTLSStatus() {

}

0 comments on commit 570b3a0

Please sign in to comment.