Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_app_configuration_key - fix no label regression issue #19979

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ func KeyId(input string) (*AppConfigurationKeyId, error) {
Label: label,
}

// Label will have a "%00" placeholder if we're dealing with an empty label,
// so we set the label to the expected value (empty string) and trim the input
// string, so we can properly extract the configuration store ID out of it.
if label == "%00" {
// Golang's URL parser will translate %00 to \000 (NUL). This will only happen if we're dealing with an empty
// label, so we set the label to the expected value (empty string) and trim the input string, so we can properly
// extract the configuration store ID out of it.
if label == "\000" {
appcfgID.Label = ""
input = strings.TrimSuffix(input, "%00")
}
Expand Down