aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2019-11-29 12:22:45 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2019-11-29 12:22:45 +0200
commitb9c48f9a25f39057ec774cadcc89599e0359dc7e (patch)
treec6b89b07eaaa294fe50c683f18a02c4a1cb1dfb7
parent2ec31a163a6e6dc690aa7117a70374059451db76 (diff)
downloadrex-b9c48f9a25f39057ec774cadcc89599e0359dc7e.tar.gz
rex-b9c48f9a25f39057ec774cadcc89599e0359dc7e.tar.bz2
Bugfix
* rex: Clear config(default,selected) in ::hostproc::prologue, after it has been properly initialized and its content copied to config(hosts).
-rwxr-xr-xrex4
1 files changed, 3 insertions, 1 deletions
diff --git a/rex b/rex
index 6ff3f19..06f48cd 100755
--- a/rex
+++ b/rex
@@ -3279,13 +3279,15 @@ proc savedefault {} {
proc rex_group_select {} {
global config
+ proc ::hostproc::prologue {} {
+ unset -nocomplain ::config(default,selected)
+ }
proc ::hostproc::logout {host ref status} {
if {$status == 0} {
lappend ::config(default,selected) $host
}
}
- unset -nocomplain config(default,selected)
rex_command_common \
-usage {rex group select [OPTIONS] COMMAND [ARGS...]} \
-docstring {Selects hosts on which COMMAND succeeds}

Return to:

Send suggestions and report system problems to the System administrator.