« Previous | Next » 

Revision e4a48c7b

IDe4a48c7b1d1d62b1e8d2bca1c62f777bda496d4f
Parent c71d2178
Child 72ce3463, fd121c8e

Added by Michael Hanselmann over 12 years ago

utils: Fix UnescapeAndSplit parsing bug

If a value passed to UnescapeAndSplit ended with a backslash an
exception would be raised:

$ gnt-instance modify -H mem=x\\ inst1.example.com
[…]
e2 = slist.pop(0)
IndexError: pop from empty list

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences