Skip to content

Commit

Permalink
Cleanup user-facing error regarding ACR SKU revert (#21286)
Browse files Browse the repository at this point in the history
Simply some aesthetic changes to the alert message that shows up when you try to change a premium ACR SKU to a Basic that has existing network rules.
  • Loading branch information
Hekter committed Apr 5, 2023
1 parent 06f82d9 commit ae41a86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func resourceContainerRegistryCreate(d *pluginsdk.ResourceData, meta interface{}

networkRuleSet := expandNetworkRuleSet(d.Get("network_rule_set").([]interface{}))
if networkRuleSet != nil && !strings.EqualFold(sku, string(containerregistry.SkuNamePremium)) {
return fmt.Errorf("`network_rule_set_set` can only be specified for a Premium Sku. If you are reverting from a Premium to Basic SKU plese set network_rule_set = []")
return fmt.Errorf("`network_rule_set_set` can only be specified for a Premium SKU. If you are reverting from a Premium to Basic SKU, set `network_rule_set = []`")
}

quarantinePolicy := expandQuarantinePolicy(d.Get("quarantine_policy_enabled").(bool))
Expand Down

0 comments on commit ae41a86

Please sign in to comment.