Skip to content
  • Iustin Pop's avatar
    Introduce suport for optional keys in JObjects · f36a8028
    Iustin Pop authored
    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.
    f36a8028