From a89c07a9b6e7cec29744fe37eead1b18a54a767b Mon Sep 17 00:00:00 2001 From: derickdiaz Date: Thu, 19 Oct 2023 05:41:38 -0500 Subject: [PATCH] Changed option to Boolean --- dnf/automatic/main.py | 4 +--- doc/automatic.rst | 2 +- etc/dnf/automatic.conf | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/dnf/automatic/main.py b/dnf/automatic/main.py index 815a3511a2..c27a75268d 100644 --- a/dnf/automatic/main.py +++ b/dnf/automatic/main.py @@ -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): diff --git a/doc/automatic.rst b/doc/automatic.rst index 3abdb1a594..fc3a1ccc28 100644 --- a/doc/automatic.rst +++ b/doc/automatic.rst @@ -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 diff --git a/etc/dnf/automatic.conf b/etc/dnf/automatic.conf index fa9c9b4e0d..f60f75b9e9 100644 --- a/etc/dnf/automatic.conf +++ b/etc/dnf/automatic.conf @@ -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.