diff sat_frontends/jp/common.py @ 3626:82e616b70a2a

CLI: fix section used for config following name change
author Goffi <goffi@goffi.org>
date Fri, 27 Aug 2021 14:46:52 +0200
parents 04283582966f
children 9ca19b317293 fc24e611c9aa
line wrap: on
line diff
--- a/sat_frontends/jp/common.py	Mon Aug 02 21:47:22 2021 +0200
+++ b/sat_frontends/jp/common.py	Fri Aug 27 14:46:52 2021 +0200
@@ -199,13 +199,13 @@
         content_file_obj.close()
 
         # we prepare arguments
-        editor = config.getConfig(self.sat_conf, "jp", "editor") or os.getenv(
+        editor = config.getConfig(self.sat_conf, C.CONFIG_SECTION, "editor") or os.getenv(
             "EDITOR", "vi"
         )
         try:
             # is there custom arguments in sat.conf ?
             editor_args = config.getConfig(
-                self.sat_conf, "jp", editor_args_opt, Exception
+                self.sat_conf, C.CONFIG_SECTION, editor_args_opt, Exception
             )
         except (NoOptionError, NoSectionError):
             # no, we check if we know the editor and have special arguments