Skip to content
Snippets Groups Projects
Commit 729b48ad authored by Jeremy Auguste's avatar Jeremy Auguste
Browse files

Correctly fixed host arg

parent fad6de85
Branches
No related tags found
No related merge requests found
......@@ -59,8 +59,12 @@ def prepare_oarsub(gpu, hosts, core, time,
else:
properties += "(gpu IS NULL)"
if hosts:
for host in hosts:
properties += " OR host LIKE '{}'".format(host)
properties += " AND ("
for idx, host in enumerate(hosts):
if idx != 0:
properties += " OR "
properties += "host LIKE '{}'".format(host)
properties += ")"
if ignore_hosts:
for host in ignore_hosts:
properties += " AND host NOT LIKE '{}'".format(host)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment