Skip to content

Commit

Permalink
skip rp register different handling for diff providers
Browse files Browse the repository at this point in the history
  • Loading branch information
magodo committed Sep 10, 2024
1 parent 7f69025 commit a9fe3dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/meta/base_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,12 @@ func NewBaseMeta(cfg config.CommonConfig) (*baseMeta, error) {
setIfNoExist("use_oidc", cty.BoolVal(cfg.AuthConfig.UseOIDC))

// Update provider config for provider registration
setIfNoExist("resource_provider_registrations", cty.StringVal("none"))
switch cfg.ProviderName {
case "azurerm":
setIfNoExist("resource_provider_registrations", cty.StringVal("none"))
case "azapi":
setIfNoExist("skip_provider_registration", cty.BoolVal(true))
}

meta := &baseMeta{
logger: cfg.Logger,
Expand Down

0 comments on commit a9fe3dc

Please sign in to comment.