1. 04 Dec, 2012 2 commits
  2. 30 Nov, 2012 8 commits
  3. 21 Nov, 2012 5 commits
  4. 20 Nov, 2012 2 commits
    • Iustin Pop's avatar
      Add more basic validation types · edb5a1c8
      Iustin Pop authored
      
      
      This mirrors the ht.py types PositiveInt, NonNegative, etc., except
      that they work at a more generic level (any numeric type, respectively
      any non-empty list).
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarAdeodato Simo <dato@google.com>
      edb5a1c8
    • 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
      this 
      
       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
      module.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarAdeodato Simo <dato@google.com>
      5e9deac0