option --mail_report_on doesn't work

Bug #1489242 reported by Arty
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mylvmbackup
Fix Committed
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

Revision history for this message
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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.