« Previous | Next » 

Revision c522ea02

IDc522ea0284881355f9cf5ade15dcdcf0473f77c7
Parent 3aecd2c7
Child 70873231

Added by Iustin Pop almost 15 years ago

Fix parsing of drbdsetup show output

This fixes the parsing of integers in the drbdsetup show output with
newer pyparsing versions.

Basically, the convert-to-int action that we use was taken from the
example documentation of an older pyparsing version that automatically
uses only the second element if the result is returned as a tuple, but
this was deprecated for a while and removed in 1.4.3.

Based on a nice report by Jorge Cabello <>, and
confirmation about pyparsing behaviour from its author. Thanks!

Reviewed-by: imsnah

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences