mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-17 14:38:41 +08:00
fetches mq admin password from env
This commit is contained in:
parent
55542f3359
commit
bf317d05eb
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue