use local variable for mq configuration

This commit is contained in:
Abhishek Kondur 2022-10-21 13:31:42 +05:30
parent 9eed7d50a1
commit 6b8d633386
2 changed files with 3 additions and 1 deletions

View file

@ -132,7 +132,9 @@ func encodePasswordToPBKDF2(password string, salt string, iterations int, keyLen
// Configure - configures the dynamic initial configuration for MQ
func Configure() error {
logger.Log(0, "Configuring MQ...")
dynConfig := dynConfigInI
path := functions.GetNetmakerPath() + ncutils.GetSeparator() + dynamicSecurityFile
password := servercfg.GetMqAdminPassword()

View file

@ -26,7 +26,7 @@ const (
var (
// default configuration of dynamic security
dynConfig = dynJSON{
dynConfigInI = dynJSON{
Clients: []client{
{
Username: mqAdminUserName,