fetches mq admin password from env

This commit is contained in:
Abhishek Kondur 2022-09-26 16:54:52 +05:30
parent 55542f3359
commit bf317d05eb

View file

@ -600,3 +600,13 @@ func GetMQServerPort() string {
}
return port
}
func GetMqAdminPassword() string {
password := ""
if os.Getenv("MQ_ADMIN_PASSWORD") != "" {
password = os.Getenv("MQ_ADMIN_PASSWORD")
} else if config.Config.Server.MQAdminPassword != "" {
password = config.Config.Server.MQAdminPassword
}
return password
}