Skip to content

Commit 8989e2c

Browse files
committed
aligned variable assignments and marked output content as sensitive
1 parent d1f370d commit 8989e2c

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data "external" "this" {
1010
dotenv = var.source_environment
1111
needroot = var.needroot
1212

13-
label = var.description
14-
file_name = var.filename
13+
label = var.description
14+
file_name = var.filename
1515
}
1616
}

outputs.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ output "path" {
33
}
44

55
output "content" {
6-
value = file(data.external.this.result.path)
6+
value = file(data.external.this.result.path)
7+
sensitive = true
78
}
89

910
output "checksum" {

variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
variable "description" {
2-
type = string
2+
type = string
33
default = "MakeSelf Archive"
44

55
description = "The label that describes the archive."
@@ -12,21 +12,21 @@ variable "source_dir" {
1212
}
1313

1414
variable "source_entrypoint" {
15-
type = string
15+
type = string
1616
default = "entrypoint.sh"
1717

1818
description = "The script to run when the archive is extracted."
1919
}
2020

2121
variable "source_environment" {
22-
type = string
22+
type = string
2323
default = ""
2424

2525
description = "Dotenv file to be included into the archive."
2626
}
2727

2828
variable "filename" {
29-
type = string
29+
type = string
3030
default = "makeself.run"
3131

3232
description = "The name of the archive file."

0 commit comments

Comments
 (0)