From 1349c4f0b933027af1dd5f4c3e2c3ddb31b1b425 Mon Sep 17 00:00:00 2001 From: omkarkhatavkar Date: Fri, 15 Dec 2023 15:33:55 +0530 Subject: [PATCH] extra check not recording property incase of video recording is false --- robottelo/hosts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/robottelo/hosts.py b/robottelo/hosts.py index b4e4fdcc0cd..143cb87588f 100644 --- a/robottelo/hosts.py +++ b/robottelo/hosts.py @@ -1849,8 +1849,9 @@ def get_caller(): video_url = settings.ui.grid_url.replace( ':4444', f'/videos/{ui_session.ui_session_id}.mp4' ) - self.record_property('video_url', video_url) - self.record_property('session_id', ui_session.ui_session_id) + if self.record_property is not None and settings.ui.record_video: + self.record_property('video_url', video_url) + self.record_property('session_id', ui_session.ui_session_id) @property def satellite(self):