[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OSSTEST PATCH 22/82] sg-run-job: Use +! in per-host-ts implementation



From: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

This makes this slightly clearer, even more so in a moment.

No functional change.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 sg-run-job | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/sg-run-job b/sg-run-job
index 3ca725e7..3f44cae7 100755
--- a/sg-run-job
+++ b/sg-run-job
@@ -458,11 +458,10 @@ proc per-host-ts {iffail ident script args} {
     set awaitl {}
     foreach host $need_xen_hosts {
         set hostargs {}
-        if {![string compare $host host]} {
-            lappend hostargs + $host
-        } else {
-            lappend hostargs $host +
-        }
+       if {[string compare $host host]} {
+           lappend hostargs +! $host
+       }
+       lappend hostargs + $host
         lappend awaitl [eval spawn-ts $iffail $ident $script $hostargs $args]
     }
 
-- 
2.20.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.