mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-19 07:23:06 +01:00
so-status should ignore commented entries in so-status.conf
Import mode comments out so-steno, so-suricata, and so-zeek in so-status.conf, so so-status should ignore these lines.
This commit is contained in:
@@ -96,6 +96,8 @@ def check_container_status(options, console):
|
|||||||
container_list = []
|
container_list = []
|
||||||
expected_file = open(EXPECTED_CONTAINERS_FILE, "r")
|
expected_file = open(EXPECTED_CONTAINERS_FILE, "r")
|
||||||
for container in expected_file:
|
for container in expected_file:
|
||||||
|
if container.startswith('#'):
|
||||||
|
continue
|
||||||
container = container.strip()
|
container = container.strip()
|
||||||
exists = False
|
exists = False
|
||||||
details = { "Name": container, "Status": "missing", "Details": ""}
|
details = { "Name": container, "Status": "missing", "Details": ""}
|
||||||
|
|||||||
Reference in New Issue
Block a user