Added mqversion util functions for version feature toggles

This commit is contained in:
Luke J Powlett
2020-11-02 17:30:21 +00:00
committed by GitHub Enterprise
parent a7125b7700
commit 94ad66661e
4 changed files with 109 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ import (
"strings"
"github.com/ibm-messaging/mq-container/internal/command"
"github.com/ibm-messaging/mq-container/internal/mqversion"
)
var (
@@ -50,7 +51,7 @@ func logImageTag() {
}
func logMQVersion() {
mqVersion, _, err := command.Run("dspmqver", "-b", "-f", "2")
mqVersion, err := mqversion.Get()
if err != nil {
log.Printf("Error Getting MQ version: %v", strings.TrimSuffix(string(mqVersion), "\n"))
}