From 4e6cc846a618ecef5c101727bbd03f6674044ab7 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 17 Jan 2018 12:38:37 -0600 Subject: Finally remove utils.Cfg (#8113) * finally remove utils.Cfg * fix compile error * another test compilation fix --- utils/license.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/license.go') diff --git a/utils/license.go b/utils/license.go index fa731c6b5..2aaa2a549 100644 --- a/utils/license.go +++ b/utils/license.go @@ -168,8 +168,8 @@ func ValidateLicense(signed []byte) (bool, string) { return true, string(plaintext) } -func GetAndValidateLicenseFileFromDisk() (*model.License, []byte) { - fileName := GetLicenseFileLocation(*Cfg.ServiceSettings.LicenseFileLocation) +func GetAndValidateLicenseFileFromDisk(location string) (*model.License, []byte) { + fileName := GetLicenseFileLocation(location) if _, err := os.Stat(fileName); err != nil { l4g.Debug("We could not find the license key in the database or on disk at %v", fileName) -- cgit v1.2.3-1-g7c22