2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-26 19:10:30 +00:00

Do not flag file: as insecure

Locally hosted media should not be considered
insecure.
This commit is contained in:
Jarrod Johnson 2019-06-11 11:06:59 -04:00
parent 56e9a67ef8
commit ee82831370

View File

@ -83,7 +83,8 @@ def list_media(noderange, media):
for node in res.get('databynode', []):
url = res['databynode'][node].get('url', None)
name = res['databynode'][node].get('name', None)
if url and not res['databynode'][node].get('secure', False):
if (url and not url.startswith('file:') and
not res['databynode'][node].get('secure', False)):
name += ' (insecure)'
if not name:
continue