diff options
author | mark <mark> | 2012-02-16 21:50:27 +0000 |
---|---|---|
committer | mark <mark> | 2012-02-16 21:50:27 +0000 |
commit | 08b3d5f072bc2852a687b8fe9d6819fea8440a54 (patch) | |
tree | ee63353a5de06569015c8951f11563160a3f106d /FS/FS/part_export/status_shellcommands.pm | |
parent | 825422583d2d510c0f552c513bef4cc1ac921950 (diff) |
more options for error handling in shellcommands export, #16424
Diffstat (limited to 'FS/FS/part_export/status_shellcommands.pm')
-rw-r--r-- | FS/FS/part_export/status_shellcommands.pm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/FS/FS/part_export/status_shellcommands.pm b/FS/FS/part_export/status_shellcommands.pm index 50e24f8..53d2b37 100644 --- a/FS/FS/part_export/status_shellcommands.pm +++ b/FS/FS/part_export/status_shellcommands.pm @@ -13,9 +13,13 @@ tie my %options, 'Tie::IxHash', 'spam_tag2_level' => { label=>'Spam set tag2 level command', }, 'spam_kill_level' => { label=>'Spam set kill level command', }, - 'ignore_all_output' => { - label => 'Ignore all output and errors from the command', - type => 'checkbox', + 'fail_on_output' => { + label => 'Treat any output from the command as an error', + type => 'checkbox', + }, + 'ignore_all_errors' => { + label => 'Ignore all errors from the command', + type => 'checkbox', }, ; @@ -44,7 +48,8 @@ sub export_setstatus { user => $self->option('user') || 'root', host => $self->machine, #stdin_string => $stdin_string, - ignore_all_output => $self->option('ignore_all_output'), + fail_on_output => $self->option('fail_on_output'), + ignore_all_errors => $self->option('ignore_all_errors'), #ignored_errors => $self->option('ignored_errors') || '', ); |