Skip to content

Commit

Permalink
extra check not recording property incase of video recording is false (
Browse files Browse the repository at this point in the history
…#13475)

(cherry picked from commit 61219a1)
  • Loading branch information
omkarkhatavkar authored and web-flow committed Dec 27, 2023
1 parent d97bb89 commit 91d73eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions robottelo/hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1824,8 +1824,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):
Expand Down

0 comments on commit 91d73eb

Please sign in to comment.