From 72e4daafc1d3d742de5c336572bcd9c88dd4eb97 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 24 Oct 2023 09:53:40 -0500 Subject: [PATCH] Fix config file priority for display, and batch subprocess commands --- tailbone/templates/appinfo/index.mako | 4 ++-- tailbone/views/batch/core.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tailbone/templates/appinfo/index.mako b/tailbone/templates/appinfo/index.mako index 40bf31ce..62a911ee 100644 --- a/tailbone/templates/appinfo/index.mako +++ b/tailbone/templates/appinfo/index.mako @@ -51,7 +51,7 @@ - Configuration Files + Configuration Files (style: ${request.rattail_config._style}) @@ -116,7 +116,7 @@ ${parent.modify_this_page_vars()} diff --git a/tailbone/views/batch/core.py b/tailbone/views/batch/core.py index 79d3f581..b9c28be7 100644 --- a/tailbone/views/batch/core.py +++ b/tailbone/views/batch/core.py @@ -931,7 +931,7 @@ class BatchMasterView(MasterView): prefix = self.rattail_config.get('rattail', 'command_prefix', default=sys.prefix) cmd = [os.path.join(prefix, 'bin/{}'.format(command))] - for path in reversed(self.rattail_config.files_read): + for path in self.rattail_config.prioritized_files: cmd.extend(['--config', path]) if username: cmd.extend(['--runas', username])