Revision 58c09b0e src/Ganeti/HsConstants.hs

b/src/Ganeti/HsConstants.hs
250 250
-- * Possible values for NodeGroup.alloc_policy
251 251

  
252 252
allocPolicyLastResort :: String
253
allocPolicyLastResort = "last_resort"
253
allocPolicyLastResort = Types.allocPolicyToRaw AllocLastResort
254 254

  
255 255
allocPolicyPreferred :: String
256
allocPolicyPreferred = "preferred"
256
allocPolicyPreferred = Types.allocPolicyToRaw AllocPreferred
257 257

  
258 258
allocPolicyUnallocable :: String
259
allocPolicyUnallocable = "unallocable"
259
allocPolicyUnallocable = Types.allocPolicyToRaw AllocUnallocable
260 260

  
261 261
validAllocPolicies :: [String]
262
validAllocPolicies =
263
  [allocPolicyLastResort,
264
   allocPolicyPreferred,
265
   allocPolicyUnallocable]
262
validAllocPolicies = map Types.allocPolicyToRaw [minBound..]
266 263

  
267 264
-- | Temporary external/shared storage parameters
268 265
blockdevDriverManual :: String

Also available in: Unified diff