Browse Source

Merge pull request #2052 from yearski/patch-1

bugfix serverconf: GetPlatform and GetNetmakerAccountID
dcarns 2 years ago
parent
commit
029d3f50ac
1 changed files with 2 additions and 2 deletions
  1. 2 2
      servercfg/serverconf.go

+ 2 - 2
servercfg/serverconf.go

@@ -487,7 +487,7 @@ func GetPlatform() string {
 	if os.Getenv("PLATFORM") != "" {
 		platform = os.Getenv("PLATFORM")
 	} else if config.Config.Server.Platform != "" {
-		platform = config.Config.Server.SQLConn
+		platform = config.Config.Server.Platform
 	}
 	return platform
 }
@@ -637,7 +637,7 @@ func GetLicenseKey() string {
 func GetNetmakerAccountID() string {
 	netmakerAccountID := os.Getenv("NETMAKER_ACCOUNT_ID")
 	if netmakerAccountID == "" {
-		netmakerAccountID = config.Config.Server.LicenseValue
+		netmakerAccountID = config.Config.Server.NetmakerAccountID
 	}
 	return netmakerAccountID
 }