From f5ba17c8025d9b0bdde67b0c255904802fe28975 Mon Sep 17 00:00:00 2001 From: jakub-nt <175944085+jakub-nt@users.noreply.github.com> Date: Tue, 30 Jul 2024 14:18:06 +0200 Subject: [PATCH] Improved the warning text when an added local module contains a policy file with an autorun tag Ticket: ENT-10229 Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com> --- cfbs/cfbs_config.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cfbs/cfbs_config.py b/cfbs/cfbs_config.py index 88e7187..21c6e54 100644 --- a/cfbs/cfbs_config.py +++ b/cfbs/cfbs_config.py @@ -289,9 +289,8 @@ def _handle_local_module(self, module): for file in policy_files: if _has_autorun_tag(file): log.warning( - "Found bundle tagged with autorun in local policy file '%s': " - % file - + "Note that the autorun tag is ignored when adding local policy files or subdirectories." + "Found autorun tag in '%s', " % file + + "but it looks like the autorun feature is not enabled, consider enabling it via 'cfbs add autorun' or a custom './def.json' file." ) # TODO: Support adding local modules with autorun tag