license: remove check for Azure.ConfidentialVM (#1602)

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-04-03 13:19:54 -04:00 committed by GitHub
parent 7a8c4727f5
commit 58b405d04c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,19 +45,10 @@ func (c *Checker) CheckLicense(ctx context.Context, provider cloudprovider.Provi
} else { } else {
printer("Constellation license found!\n") printer("Constellation license found!\n")
} }
providerStr := provider.String()
if provider == cloudprovider.Azure {
if *providerCfg.Azure.ConfidentialVM {
providerStr = "azure-cvm"
} else {
providerStr = "azure-tl"
}
}
quotaResp, err := c.quotaChecker.QuotaCheck(ctx, QuotaCheckRequest{ quotaResp, err := c.quotaChecker.QuotaCheck(ctx, QuotaCheckRequest{
License: licenseID, License: licenseID,
Action: Init, Action: Init,
Provider: providerStr, Provider: provider.String(),
}) })
if err != nil { if err != nil {
printer("Unable to contact license server.\n") printer("Unable to contact license server.\n")