Skip to content

Commit

Permalink
Changed option to Boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
derickdiaz committed Oct 19, 2023
1 parent f9e0aa3 commit a89c07a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions dnf/automatic/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ def __init__(self):
libdnf.conf.VectorString(['email', 'stdio'])))
self.add_option('output_width', libdnf.conf.OptionNumberInt32(80))
self.add_option('system_name', libdnf.conf.OptionString(socket.gethostname()))
self.add_option('send_error_messages', libdnf.conf.OptionStringList(
libdnf.conf.VectorString(['yes', 'no'])
))
self.add_option('send_error_messages', libdnf.conf.OptionBool(False))


def gpgsigcheck(base, pkgs):
Expand Down
2 changes: 1 addition & 1 deletion doc/automatic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Choosing how the results should be reported.
How the system is called in the reports.

``send_error_messages``
list, default: ``yes, no``
boolean, default: False

Invokes emitters when an errors occurs

Expand Down
1 change: 0 additions & 1 deletion etc/dnf/automatic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ reboot_command = "shutdown -r +5 'Rebooting after applying package updates'"
# If emit_via is None or left blank, no messages will be sent.
emit_via = stdio

send_error_messages = "no"

[email]
# The address to send email messages from.
Expand Down

0 comments on commit a89c07a

Please sign in to comment.