diff --git a/oargen.py b/oargen.py
index 450e973def29ed1557462a2b4607296a49ac90f8..2006af94b2ae86821e0a649d98d0580c8c11a5ba 100755
--- a/oargen.py
+++ b/oargen.py
@@ -60,7 +60,7 @@ def prepare_oarsub(gpu, hosts, core, time,
         properties += "(gpu IS NULL)"
     if hosts:
         for host in hosts:
-            properties += " AND host LIKE '{}'".format(host)
+            properties += " OR host LIKE '{}'".format(host)
     if ignore_hosts:
         for host in ignore_hosts:
             properties += " AND host NOT LIKE '{}'".format(host)