Skip to content

Commit 77075cf

Browse files
remove platform export generation date in export files (#93)
1 parent 9769785 commit 77075cf

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

internal/connector/common/common_utils.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"slices"
1010
"strings"
1111
"text/template"
12-
"time"
1312

1413
"github.com/pingidentity/pingcli/internal/connector"
1514
"github.com/pingidentity/pingcli/internal/customtypes"
@@ -91,15 +90,9 @@ func writeHeader(format, outputFilePath string, outputFile *os.File) error {
9190
return fmt.Errorf("failed to parse HCL import header template. err: %s", err.Error())
9291
}
9392

94-
header := struct {
95-
DateTime string
96-
}{
97-
DateTime: time.Now().Format(time.RFC1123),
98-
}
99-
10093
switch format {
10194
case customtypes.ENUM_EXPORT_FORMAT_HCL:
102-
err := hclImportHeaderTemplate.Execute(outputFile, header)
95+
err := hclImportHeaderTemplate.Execute(outputFile, nil)
10396
if err != nil {
10497
return fmt.Errorf("failed to write import template to file %q. err: %s", outputFilePath, err.Error())
10598
}

internal/connector/templates/hcl_import_header.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#######################################################################################################################
22
#
3-
# Generated by Ping CLI: {{.DateTime}}
3+
# Generated by Ping CLI:
44
# https://github.com/pingidentity/pingcli
55
#
66
# Using the Terraform import blocks generated in this file, Terraform HCL can be generated and resource

0 commit comments

Comments
 (0)