option --mail_report_on doesn't work

Bug #1489242 reported by Arty on 2015-08-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mylvmbackup
High
Lenz Grimmer

Bug Description

If you use mylvmbackup with '--mail_report_on=errors' argument, it fails to run with this message:

"Option mail_report_on does not take an argument"

The problem is in the load_args() where mail_report_on definition looks like:
"mail_report_on" => \&mail_report_on,

which doesn't look good (according to man mylvmbackup). What I suggest is to replace it with:
"mail_report_on=s" => \$mail_report_on,

Related branches

Lenz Grimmer (lenzgr) wrote :

You're right, thanks for the report. The same applies to the snmp_report_on option. I'll fix this for 0.17.

Changed in mylvmbackup:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Lenz Grimmer (lenzgr)
milestone: none → 0.17
Lenz Grimmer (lenzgr) wrote :

A fix for this was pushed into the trunk and will be included in 0.17.

Changed in mylvmbackup:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers