Skip to content

Commit

Permalink
azurerm_app_configuration: fix a potential crash (#23302)
Browse files Browse the repository at this point in the history
* bugfix #23290

Signed-off-by: ziyeqf <[email protected]>

* update per comment

Signed-off-by: ziyeqf <[email protected]>

---------

Signed-off-by: ziyeqf <[email protected]>
  • Loading branch information
ziyeqf authored Sep 19, 2023
1 parent 4d9e601 commit 014a127
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -647,11 +647,12 @@ type flattenedAccessKeys struct {
}

func expandAppConfigurationEncryption(input []interface{}) *configurationstores.EncryptionProperties {
if len(input) == 0 {
if len(input) == 0 || input[0] == nil {
return nil
}

encryptionParam := input[0].(map[string]interface{})

result := &configurationstores.EncryptionProperties{
KeyVaultProperties: &configurationstores.KeyVaultProperties{},
}
Expand Down

0 comments on commit 014a127

Please sign in to comment.