diff --git a/command/operator_diagnose.go b/command/operator_diagnose.go index bdb7d6d240..728a2a01d9 100644 --- a/command/operator_diagnose.go +++ b/command/operator_diagnose.go @@ -652,7 +652,9 @@ SEALFAIL: if envLicense := os.Getenv(EnvVaultLicense); envLicense != "" { coreConfig.License = envLicense } - vault.DiagnoseCheckLicense(licenseCtx, vaultCore, coreConfig, false) + vault.DiagnoseCheckLicense(licenseCtx, vaultCore, coreConfig, vault.DiagnoseCheckLicenseGeneration{ + Generate: false, + }) } licenseSpan.End() diff --git a/vault/core_util.go b/vault/core_util.go index 0e1f1c094d..ea7b444b42 100644 --- a/vault/core_util.go +++ b/vault/core_util.go @@ -207,7 +207,7 @@ func (c *Core) MissingRequiredState(raw []string, perfStandby bool) bool { return false } -func DiagnoseCheckLicense(ctx context.Context, vaultCore *Core, coreConfig CoreConfig, generate bool) (bool, []string) { +func DiagnoseCheckLicense(ctx context.Context, vaultCore *Core, coreConfig CoreConfig, generateInput DiagnoseCheckLicenseGeneration) (bool, []string) { return false, nil } diff --git a/vault/core_util_common.go b/vault/core_util_common.go index bec673280e..d15f51e0f1 100644 --- a/vault/core_util_common.go +++ b/vault/core_util_common.go @@ -11,6 +11,11 @@ import ( "github.com/hashicorp/vault/sdk/logical" ) +type DiagnoseCheckLicenseGeneration struct { + Generate bool + GenerateIBMLicense bool +} + // GetCoreConfigInternal returns the server configuration // in struct format. func (c *Core) GetCoreConfigInternal() *server.Config {