Don't get node info, if there is no node.

It prevents the exception is reraised, if node is not ready.
This commit is contained in:
Chi Song 2020-12-15 14:09:22 +08:00
Родитель f15af03089
Коммит 3c94699c3b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -118,7 +118,7 @@ class TestResult:
set_filtered_fields(self, result_message, fields=fields)
# get information of default node, and send to notifier.
if self.environment:
if self.environment and self.environment.nodes:
environment_information = (
self.environment.default_node.get_node_information()
)