« Previous | Next » 

Revision f36a8028

IDf36a8028b8fc44c09372d6ff05c91975bd94fd99
Parent c96d44df
Child 88f25dd0

Added by Iustin Pop about 14 years ago

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

View differences