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

Oops wrong operator

parent e5f05ed9
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ def prepare_oarsub(gpu, hosts, core, time, ...@@ -60,7 +60,7 @@ def prepare_oarsub(gpu, hosts, core, time,
properties += "(gpu IS NULL)" properties += "(gpu IS NULL)"
if hosts: if hosts:
for host in hosts: for host in hosts:
properties += " AND host LIKE '{}'".format(host) properties += " OR host LIKE '{}'".format(host)
if ignore_hosts: if ignore_hosts:
for host in ignore_hosts: for host in ignore_hosts:
properties += " AND host NOT LIKE '{}'".format(host) 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