Skip to content

Commit

Permalink
Re-enabling compact. It works in local tests and is required for top …
Browse files Browse the repository at this point in the history
…modules to convert
  • Loading branch information
brandonpollack23 committed Jan 29, 2025
1 parent 17d3778 commit fc61fb5
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions pkg/convert/tf.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,21 +487,11 @@ var tfFunctionStd = map[string]struct {
output: "result",
paramArgs: true,
},
/* Currently failing due to: cannot assign expression of type { input: (string, string, string, null,
string) } to location of type { input: list(output(string) | string) | output(list(string)) } | output({
input: list(string) }):
*/
//
// on main.pp line 263:
// 264: value = invoke("std:index:compact", {
// 265: input = ["a", "", "b", null, "c"]
// 266: }).result
//
//"compact": {
// token: "std:index:compact",
// inputs: []string{"input"},
// output: "result",
//},
"compact": {
token: "std:index:compact",
inputs: []string{"input"},
output: "result",
},
"cidrhost": {
token: "std:index:cidrhost",
inputs: []string{"input", "host"},
Expand Down Expand Up @@ -3570,7 +3560,6 @@ func componentProgramBinderFromAfero(fs afero.Fs) pcl.ComponentProgramBinder {
var unimplementedFunctionBugs = map[string]string{
"coalesce": "pulumi/pulumi-converter-terraform#65",
"coalescelist": "pulumi/pulumi-converter-terraform#65",
"compact": "pulumi/pulumi-converter-terraform#65",
"distinct": "pulumi/pulumi-converter-terraform#65",
"flatten": "pulumi/pulumi-converter-terraform#138",
"format": "pulumi/pulumi-converter-terraform#65",
Expand Down

0 comments on commit fc61fb5

Please sign in to comment.