Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S snf-ganeti
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • itmineduitminedu
  • snf-ganeti
  • Repository
Switch branch/tag
  • snf-ganeti
  • test
  • ganeti.utils.algo_unittest.py
Find file BlameHistoryPermalink
  • René Nussbaumer's avatar
    algo: Make a dict from an flat list · 9c709b31
    René Nussbaumer authored Nov 15, 2011
    
    
    This is in preparation to take deeper dict constructs from the command
    line. You can feed the optionslist directly constructed of type
    "identkeyval" to it and it returns a fully deflated dict.
    
    This is mainly needed for the resource model changes where we have to
    modify the disk_state which is a 3 level dict:
    
    disk_type/name:disk_reserved=10g
    
    Signed-off-by: default avatarRené Nussbaumer <rn@google.com>
    Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
    9c709b31