diff --git a/jobs.py b/jobs.py index 28d58946..31e00e92 100755 --- a/jobs.py +++ b/jobs.py @@ -566,7 +566,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"]