diff options
-rwxr-xr-x | rex | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -2271,7 +2271,7 @@ proc runcmd {hosts command} { switch -- [job get $batch $sid state] { {INIT} { set text [regsub -all {[\r\n]} $expect_out(0,string) {}] - terror -nosave "[job id $batch $sid]: $text" + terror -nosave "ssh [job id $batch $sid]: $text" } {COMMAND} - {SUDO} { @@ -2686,12 +2686,13 @@ namespace eval ::config { terror -nosave "warning: please change this to \"[apply $update_hint($var) [valueof $var]]\"" } if {[info exists config($var)]} { - if {$var == "hosts" && - ![info exists config(option,ignore-hosts)]} { - set hosts [valueof hosts] - lappend hosts {*}$config(hosts) - set config(hosts) $hosts - debug 3 "config(hosts) = $config(hosts)" + if {$var == "hosts"} { + if {![info exists config(option,ignore-hosts)]} { + set hosts [valueof hosts] + lappend hosts {*}$config(hosts) + set config(hosts) $hosts + debug 3 "config(hosts) = $config(hosts)" + } } } else { set config($var) [valueof $var] |