Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix get_monit_services_status logic (sonic-net#16013)
What is the motivation for this PR? The current logic simply checks for the keyword "status" in service_info without considering the context. If the keyword appears in 'last output' or another unintended section of the data, the logic misinterprets it. How did you do it? Ensuring "status" detection is specific to the intended line. Using a stricter parsing approach to avoid unintended matches. How did you verify/test it? Ran the test_pretest.py on kvm-t0 testbed. Captured the get_monit_services_status() output
- Loading branch information