Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S slapos.toolbox
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedi
  • slapos.toolbox
  • Merge requests
  • !132

You need to sign in or sign up before continuing.
Merged
Created Apr 10, 2024 by Kirill Smelkov@kirrOwner

promise/plugin/check_cpri_lock: Fix it to work ok with Amarisoft 2022

  • Overview 2
  • Commits 1
  • Changes 2

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

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: y/cpri-lock-2022
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7