Revision f36a8028
ID | f36a8028b8fc44c09372d6ff05c91975bd94fd99 |
Introduce suport for optional keys in JObjects
Some keys are optional in the Ganeti opcodes (e.g. ‘node’ in the
OpReplaceDisks), and as such we need to transform them in a Maybe value,
instead of failing.
The patch reworks a bit fromObj and adds maybeFromObj which parses such
optional values. It then uses it in the opcode reading.
Files
- added
- modified
- copied
- renamed
- deleted