Skip to content

Commit 18fee81

Browse files
committed
fix: fix bugs from linter fixes
1 parent bde0027 commit 18fee81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/iacprovisioner/format.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func FormatArgs(options *Options, args ...string) []string {
5151
planFileSupported := slices.Contains(TerraformCommandsWithPlanFileSupport, commandType)
5252

5353
// Include -var and -var-file flags unless we're running 'apply' with a plan file
54-
includeVars := commandType != "apply" || options.PlanFilePath != ""
54+
includeVars := commandType != "apply" || options.PlanFilePath == ""
5555

5656
terraformArgs = append(terraformArgs, args...)
5757

@@ -249,7 +249,7 @@ func mapToHclString(m map[string]interface{}) string {
249249
keyValuePairs := []string{}
250250

251251
for key, value := range m {
252-
keyValuePair := fmt.Sprintf(`"%q" = %q`, key, toHclString(value, true))
252+
keyValuePair := fmt.Sprintf(`%q = %s`, key, toHclString(value, true))
253253
keyValuePairs = append(keyValuePairs, keyValuePair)
254254
}
255255

0 commit comments

Comments
 (0)