diff options
| author | Martin Schwenke <martin@meltin.net> | 2013-06-24 19:03:26 +1000 |
|---|---|---|
| committer | Amitay Isaacs <amitay@gmail.com> | 2013-07-05 15:52:33 +1000 |
| commit | 4e07c6c433d158686e83dfcc64eb80a9e3ec0a1d (patch) | |
| tree | b54199185205b1de8eb72f7c8876018aae00564e | |
| parent | 26b161156a5c14dc427ceca6020f49994ca22843 (diff) | |
eventscripts: When replaying monitor status, don't log empty output
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit ce04f1c107b4392ca955d9f29b93aaaae62439ce)
| -rwxr-xr-x | ctdb/config/functions | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ctdb/config/functions b/ctdb/config/functions index d0d87ee650..0679938f02 100755 --- a/ctdb/config/functions +++ b/ctdb/config/functions @@ -1241,7 +1241,9 @@ ctdb_replay_monitor_status () ;; *) : ;; # Must be ERROR, do nothing special. esac - echo "$_err_out" + if [ -n "$_err_out" ] ; then + echo "$_err_out" + fi exit $_code } |
