• Kirill Smelkov's avatar
    promise/plugin/check_cpri_lock: Fix it to work ok with Amarisoft 2022 · 68dba06e
    Kirill Smelkov authored
    Old Amarisoft versions emit data that is different compared to what 640c0130 expected:
    
    - there can be trailing spaces after /dev/sdrX@Y
      fix: adjust /dev/sdr regex
    - there is empty line coming in the end that fas failing in l.split(':', 1)
      fix: ignore empty lines and make detection of : in the line more
           robust with reporting which line is not valid instead of just
           "ERROR not enough values to unpack (expected 2, got 1)"
    - there is CPRI key instead of CPRI_option, and the data in both are different.
      fix: detect automatically whether it is CPRI_option or CPRI option that is present.
    
    /Co-authored-by: lu.xu <lu.xu@nexedi.com>
    68dba06e
check_cpri_lock.py 3.56 KB