• Iustin Pop's avatar
    Create a new Ganeti/Types.hs module · 5e9deac0
    Iustin Pop authored
    There are already three cases where we copied type definitions between
    the htools-specific types into the main ganeti code. Let's stop doing
     and create a common types module that holds these.
    Note that there already exists BasicTypes.hs, but that refers to very
    low-level types, and can't use TH derivation itself.
    A side effect of this unification is that there is a small conflict
    between AdminStatus/AdminOffline and InstanceStatus/AdminOffline. As
    such, I renamed AdminOffline and AdminDown to StatusOffline/StatusDown
    in the InstanceStatus type.
    The patch also moves the tests related to these types to a new test
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarAdeodato Simo <dato@google.com>