HomeClusterLabs Projects

coroparse: Store key with prefix for nodelist.node
30dd1ad5e79aUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

coroparse: Store key with prefix for nodelist.node

Config file like:

nodelist {
  node {
    nodeid: 1
    subsection {
      nodeid: 2
    }
  }
...

was parsed incorrectly and subsection nodeid (2) was used instead of node
section nodeid (1).

Solution is to properly check key path instead of just key name and use
key path - "nodelist.node." prefix as new key name.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>

Details

Provenance
jfriesseAuthored on Fri, Apr 25, 3:25 AM
Parents
rC5716a37a69e8: coroparse: Don't allow sections within member
Branches
Unknown
Tags
Unknown

Event Timeline