Skip to content

Commit

Permalink
Ensure to only enable when a key is set
Browse files Browse the repository at this point in the history
  • Loading branch information
cgraf-spiria committed Dec 10, 2024
1 parent 26fc3b3 commit f1e8d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/mssql/mssql_virtual_machine_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ func expandSqlVirtualMachineAutoBackupSettings(input []interface{}) (*sqlvirtual
ret.StorageAccessKey = utils.String(v.(string))
}

if v, ok := config["encryption_password"]; ok {
if v, ok := config["encryption_password"]; ok && v.(string) != "" {
ret.EnableEncryption = utils.Bool(true)
ret.Password = utils.String(v.(string))
} else {
Expand Down

0 comments on commit f1e8d00

Please sign in to comment.