changeset 3417:bfe9ebd253a7

plugin app manager: fixed `public_url` value check
author Goffi <goffi@goffi.org>
date Sat, 14 Nov 2020 21:20:48 +0100
parents d7cfb031e41f
children 58e97cf475d9
files sat/plugins/plugin_misc_app_manager.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_app_manager.py	Sat Nov 14 21:19:40 2020 +0100
+++ b/sat/plugins/plugin_misc_app_manager.py	Sat Nov 14 21:20:48 2020 +0100
@@ -160,7 +160,7 @@
             )
 
         value = self.host.memory.getConfig(section, name, default)
-        if name == "public_url" and not value or not value.startswith('http'):
+        if name == "public_url" and (not value or not value.startswith('http')):
             if not value:
                 log.warning(_(
                     'No value found for "public_url", using "https://example.org" for '