From c172cdc79937ac93e4a335fe2d8fd5b14bad4338 Mon Sep 17 00:00:00 2001 From: Omkar Khatavkar Date: Wed, 27 Dec 2023 17:21:16 +0530 Subject: [PATCH] extra check not recording property incase of video recording is false (#13475) (cherry picked from commit 61219a18502cbd082d5f9bf486707c68fa083967) --- 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):