oss part of license diagnose test fix (#12234)
* oss part of license diagnose test fix * cl
This commit is contained in:
parent
28f33d2384
commit
a3fefdca35
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
core (enterprise): Disallow autogenerated licenses to be used in diagnose even when config is specified
|
||||
```
|
|
@ -594,7 +594,7 @@ SEALFAIL:
|
|||
if envLicense := os.Getenv(EnvVaultLicense); envLicense != "" {
|
||||
coreConfig.License = envLicense
|
||||
}
|
||||
vault.DiagnoseCheckLicense(licenseCtx, vaultCore, coreConfig)
|
||||
vault.DiagnoseCheckLicense(licenseCtx, vaultCore, coreConfig, false)
|
||||
}
|
||||
licenseSpan.End()
|
||||
|
||||
|
|
|
@ -181,6 +181,6 @@ func (c *Core) MissingRequiredState(raw []string, perfStandby bool) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func DiagnoseCheckLicense(ctx context.Context, vaultCore *Core, coreConfig CoreConfig) (bool, []string) {
|
||||
func DiagnoseCheckLicense(ctx context.Context, vaultCore *Core, coreConfig CoreConfig, generate bool) (bool, []string) {
|
||||
return false, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue