-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maintain logical name of keyword overlap resources. (#210)
Followup to #207 that keeps resource logical names the same to maintain state. This also fixes a merged failing test (woops) that didn't run PULUMI_ACCEPT
- Loading branch information
1 parent
fa60cd9
commit 123edef
Showing
3 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
pkg/convert/testdata/programs/name_overlap/pcl/diagnostics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[ | ||
"warning:name_overlap/main.tf:1,1-33:resource renamed to prevent keyword overlap:Renaming resource for to of type simple_resource to for_resource_pcl to prevent overlap" | ||
"warning:name_overlap/main.tf:1,1-33:resource renamed to prevent keyword overlap:Renaming resource for of type simple_resource to for_resource_ to prevent overlap" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
resource "forResourcePcl" "simple:index:resource" { | ||
__logicalName = "for_resource_pcl" | ||
resource "forResource_" "simple:index:resource" { | ||
__logicalName = "for" | ||
inputOne = "hello" | ||
inputTwo = true | ||
} | ||
|
||
resource "dependsOnFor" "simple:index:resource" { | ||
options { | ||
dependsOn = [forResourcePcl] | ||
dependsOn = [forResource_] | ||
} | ||
inputOne = forResourcePcl.result | ||
inputOne = forResource_.result | ||
inputTwo = false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters