diff --git a/jobs.py b/jobs.py index cc4cb7b6..0a6a58e9 100755 --- a/jobs.py +++ b/jobs.py @@ -559,7 +559,7 @@ def build_pytest_cmd(job_data, hosts=None, host_version=None, pytest_args=[]): job_params = dict(job_data["params"]) # Set/overwrite host_version with real host version if hosts are specified - if hosts is not None: + if hosts is not None and host_version is None: try: host = hosts.split(',')[0] cmd = ["lsb_release", "-sr"]