Skip to content

Commit 4ad3c20

Browse files
authored
Show diffs in the beta guide as HCL code (#155)
1 parent 0b3ce86 commit 4ad3c20

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/guides/upgrade_guide_beta.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ When upgrading to the latest beta release you may encounter one or more of the f
5656
### polaris_azure_exocompute
5757
Replacing the `subscription_id` field with the `cloud_account_id` field will result in the `polaris_azure_exocompute`
5858
resource being recreated, a diff similar to the following will be shown:
59-
```
59+
```hcl
6060
# polaris_azure_exocompute.default must be replaced
6161
-/+ resource "polaris_azure_exocompute" "default" {
6262
+ cloud_account_id = "a677433c-954c-4af6-842e-0268c4a82a9f" # forces replacement
@@ -70,7 +70,7 @@ Apply the diff to recreate the resource and replace the field.
7070
### polaris_azure_service_principal
7171
Replacing the `permissions_hash` field with the `permissions` field will result in the resource being updated in-place,
7272
a diff similar to the following will be shown:
73-
```
73+
```hcl
7474
# polaris_azure_service_principal.default will be updated in-place
7575
~ resource "polaris_azure_service_principal" "default" {
7676
id = "6f35cc58-e1c9-445d-8bb0-a0e30dd53a40"
@@ -84,7 +84,7 @@ Apply the diff to replace the field.
8484
### polaris_azure_subscription
8585
Because of the new Azure resource group support, using the `cloud_native_protection` or `exocompute` fields will result
8686
in a diff similar to the following:
87-
```
87+
```hcl
8888
# polaris_azure_subscription.default will be updated in-place
8989
~ resource "polaris_azure_subscription" "default" {
9090
id = "f7b298c4-bf1d-4af4-900e-bf69ddfc6187"

templates/guides/upgrade_guide_beta.md.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ When upgrading to the latest beta release you may encounter one or more of the f
5656
### polaris_azure_exocompute
5757
Replacing the `subscription_id` field with the `cloud_account_id` field will result in the `polaris_azure_exocompute`
5858
resource being recreated, a diff similar to the following will be shown:
59-
```
59+
```hcl
6060
# polaris_azure_exocompute.default must be replaced
6161
-/+ resource "polaris_azure_exocompute" "default" {
6262
+ cloud_account_id = "a677433c-954c-4af6-842e-0268c4a82a9f" # forces replacement
@@ -70,7 +70,7 @@ Apply the diff to recreate the resource and replace the field.
7070
### polaris_azure_service_principal
7171
Replacing the `permissions_hash` field with the `permissions` field will result in the resource being updated in-place,
7272
a diff similar to the following will be shown:
73-
```
73+
```hcl
7474
# polaris_azure_service_principal.default will be updated in-place
7575
~ resource "polaris_azure_service_principal" "default" {
7676
id = "6f35cc58-e1c9-445d-8bb0-a0e30dd53a40"
@@ -84,7 +84,7 @@ Apply the diff to replace the field.
8484
### polaris_azure_subscription
8585
Because of the new Azure resource group support, using the `cloud_native_protection` or `exocompute` fields will result
8686
in a diff similar to the following:
87-
```
87+
```hcl
8888
# polaris_azure_subscription.default will be updated in-place
8989
~ resource "polaris_azure_subscription" "default" {
9090
id = "f7b298c4-bf1d-4af4-900e-bf69ddfc6187"

0 commit comments

Comments
 (0)