Handle non-alphanumeric characters in description
When "
character is in description of a snapshot we get an error:
/usr/bin/schnapps: /mnt/.snapshots/31.info: line 3: syntax error: unterminated quoted string
or in /var/log/messages
(when trying to use foris-controller
to get the list of snapshots`):
foris-controller[29181]: ERROR:foris_controller.message_router:Internal error occured <class 'json.decoder.JSONDecodeError'>('Expecting ',' delimiter: line 1 column 2386 (char 2385)')
Please see if other characters can break it. :)
Edited by Maciej Lenartowicz