Marco Borgeaud ce07d261a4
Diff blocks: fix some incorrect use for terraform (#2806)
Improvement identified in #2790.

Add a prefix to the diff-id when it is used multiple times in different
"how to fix it in XYZ" sections to avoid ambiguity and pedantically
follow the spec:

> A single and unique diff-id should be used only once for each type of
code example as shown in the description of a rule.
2023-08-10 15:57:41 +02:00

32 lines
541 B
Plaintext

== How to fix it in Azure MSSQL
=== Code examples
==== Noncompliant code example
[source,terraform,diff-id=31,diff-type=noncompliant]
----
resource "azurerm_mssql_server" "example" {
name = "example"
version = "12.0"
minimum_tls_version = "1.0" # Noncompliant
}
----
==== Compliant solution
[source,terraform,diff-id=31,diff-type=compliant]
----
resource "azurerm_mssql_server" "example" {
name = "example"
version = "12.0"
minimum_tls_version = "1.2"
}
----
=== How does this work?
include::../../common/fix/fix.adoc[]