HomeClusterLabs Projects

coroparse: Store key with prefix for nodelist.node

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>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>

Details

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