« Previous | Next » 

Revision 63012024

Parent 333411a7
Child 3cf7c9fa

Added by Guido Trotter almost 16 years ago

Fix drbd show parser to handle valueless keywords

It turns out in some cases there can exist keywords without an
associated value exported by drbdsetup show. This patch makes the value
part optional in our parser, so that if it's not present the parsing
result will contain an array with just the keyword in it. This is not a
problem since we check all keyword names before accessing their values,
so we won't mistakenly try to access the value of a valueless keyword.

Reviewed-by: iustinp


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences