cockpit: Filter out localhost URLs from displayed access list

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
James Valleroy 2019-12-15 08:17:46 -05:00
parent 4805e01929
commit 8d51adcc05
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -41,6 +41,7 @@ class CockpitAppView(AppView):
def get_context_data(self, *args, **kwargs):
context = super().get_context_data(**kwargs)
context['urls'] = get_origin_domains(load_augeas())
urls = get_origin_domains(load_augeas())
context['urls'] = [url for url in urls if 'localhost' not in url]
return context