mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Merge pull request #9438 from Security-Onion-Solutions/dougburks-patch-1
so-status should ignore commented entries in so-status.conf
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