Skip to content

Commit c777740

Browse files
committed
squash: fix condition
1 parent f3a5919 commit c777740

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
@@ -1939,7 +1939,8 @@ def plan_environment(self) -> Environment:
19391939
def intrinsic_environment(self) -> Environment:
19401940
environment = Environment()
19411941

1942-
environment['TMT_PLAN_ENVIRONMENT_FILE'] = EnvVarValue(self.plan_environment_path)
1942+
if self.plan_environment_path is not None:
1943+
environment['TMT_PLAN_ENVIRONMENT_FILE'] = EnvVarValue(self.plan_environment_path)
19431944

19441945
return environment
19451946

0 commit comments

Comments
 (0)