Skip to content

Commit 7676aa4

Browse files
committed
squash: fix condition
1 parent fbedc73 commit 7676aa4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tmt/guest/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,8 @@ def plan_environment(self) -> Environment:
19891989
def intrinsic_environment(self) -> Environment:
19901990
environment = Environment()
19911991

1992-
environment['TMT_PLAN_ENVIRONMENT_FILE'] = EnvVarValue(self.plan_environment_path)
1992+
if self.plan_environment_path is not None:
1993+
environment['TMT_PLAN_ENVIRONMENT_FILE'] = EnvVarValue(self.plan_environment_path)
19931994

19941995
return environment
19951996

0 commit comments

Comments
 (0)