Skip to content

Commit ef81f2d

Browse files
Merge pull request #312 from lmiccini/fix_debug_spec
Fixup POD_DEBUG var
2 parents 75288c9 + 95ba50d commit ef81f2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

controllers/ansibletest_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ func (r *AnsibleTestReconciler) PrepareAnsibleEnv(
281281
debug := instance.Spec.Debug
282282
if debug {
283283
envVars["POD_DEBUG"] = env.SetValue("true")
284+
} else {
285+
envVars["POD_DEBUG"] = env.SetValue("false")
284286
}
285287

286288
// strings

0 commit comments

Comments
 (0)