Save API key if present in the license (#4266)

This commit is contained in:
Shireesh Anjal
2022-09-29 00:30:40 -07:00
committed by GitHub
parent cd0c81165b
commit d0e71b13a8
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -110,5 +110,9 @@ func performLicenseUpdate(licFile string, alias string) licUpdateMessage {
}
setSubnetLicense(alias, lic)
if len(li.APIKey) > 0 {
setSubnetAPIKey(alias, li.APIKey)
}
return lum
}
+1 -1
View File
@@ -22,7 +22,7 @@ require (
github.com/minio/madmin-go v1.4.29
github.com/minio/md5-simd v1.1.2 // indirect
github.com/minio/minio-go/v7 v7.0.38
github.com/minio/pkg v1.3.2
github.com/minio/pkg v1.4.1
github.com/minio/selfupdate v0.4.0
github.com/minio/sha256-simd v1.0.0
github.com/mitchellh/go-homedir v1.1.0
+2 -2
View File
@@ -346,8 +346,8 @@ github.com/minio/minio-go/v7 v7.0.23/go.mod h1:ei5JjmxwHaMrgsMrn4U/+Nmg+d8MKS1U2
github.com/minio/minio-go/v7 v7.0.38 h1:6hBjq6m/TWV+RcdsB95JwOw8PVv1P9LLb3gzL76IHWI=
github.com/minio/minio-go/v7 v7.0.38/go.mod h1:nCrRzjoSUQh8hgKKtu3Y708OLvRLtuASMg2/nvmbarw=
github.com/minio/pkg v1.1.20/go.mod h1:Xo7LQshlxGa9shKwJ7NzQbgW4s8T/Wc1cOStR/eUiMY=
github.com/minio/pkg v1.3.2 h1:zCpX8jtdF4k6r50sfqVY7rVMsagB4b9BYZaTiqpiknI=
github.com/minio/pkg v1.3.2/go.mod h1:mxCLAG+fOGIQr6odQ5Ukqc6qv9Zj6v1d6TD3NP82B7Y=
github.com/minio/pkg v1.4.1 h1:GXDy/CQ/NVxZ75dhAjM/5T2USWXAzoj6mXSXnD/vfgg=
github.com/minio/pkg v1.4.1/go.mod h1:mxCLAG+fOGIQr6odQ5Ukqc6qv9Zj6v1d6TD3NP82B7Y=
github.com/minio/selfupdate v0.4.0 h1:A7t07pN4Ch1tBTIRStW0KhUVyykz+2muCqFsITQeEW8=
github.com/minio/selfupdate v0.4.0/go.mod h1:mcDkzMgq8PRcpCRJo/NlPY7U45O5dfYl2Y0Rg7IustY=
github.com/minio/sha256-simd v0.1.1/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM=