Revision f048c574

b/src/Ganeti/OpCodes.hs
78 78

  
79 79
instance PyValue a => PyValue (NonNegative a) where
80 80
  showValue = showValue . fromNonNegative
81
  
81

  
82 82
instance PyValue a => PyValue (NonEmpty a) where
83 83
  showValue = showValue . fromNonEmpty
84
  
84

  
85 85
-- FIXME: should use the 'toRaw' function instead of being harcoded or
86 86
-- perhaps use something similar to the NonNegative type instead of
87 87
-- using the declareSADT
b/src/Ganeti/OpParams.hs
479 479
  defaultFalse "debug_simulate_errors"
480 480

  
481 481
pErrorCodes :: Field
482
pErrorCodes = 
482
pErrorCodes =
483 483
  withDoc "Error codes" $
484 484
  defaultFalse "error_codes"
485 485

  
486 486
pSkipChecks :: Field
487
pSkipChecks = 
487
pSkipChecks =
488 488
  withDoc "Which checks to skip" .
489 489
  defaultField [| emptyListSet |] $
490 490
  simpleField "skip_checks" [t| ListSet VerifyOptionalChecks |]
......
822 822
  withDoc "Node parameters" .
823 823
  renameField "genericNdParams" .
824 824
  optionalField $ simpleField "ndparams" [t| JSObject JSValue |]
825
  
825

  
826 826
pNames :: Field
827 827
pNames =
828 828
  withDoc "List of names" .
......
916 916
pIgnoreIpolicy =
917 917
  withDoc "Whether to ignore ipolicy violations" $
918 918
  defaultFalse "ignore_ipolicy"
919
  
919

  
920 920
pIallocator :: Field
921 921
pIallocator =
922 922
  withDoc "Iallocator for deciding the target node for shared-storage\
......
1167 1167
pNewName =
1168 1168
  withDoc "New group or instance name" $
1169 1169
  simpleField "new_name" [t| NonEmptyString |]
1170
  
1170

  
1171 1171
pIgnoreOfflineNodes :: Field
1172 1172
pIgnoreOfflineNodes =
1173 1173
  withDoc "Whether to ignore offline nodes" $
......
1245 1245
pIgnoreDiskSize =
1246 1246
  withDoc "Whether to ignore recorded disk size" $
1247 1247
  defaultFalse "ignore_size"
1248
  
1248

  
1249 1249
pWaitForSyncFalse :: Field
1250 1250
pWaitForSyncFalse =
1251 1251
  withDoc "Whether to wait for the disk to synchronize (defaults to false)" $
1252 1252
  defaultField [| False |] pWaitForSync
1253
  
1253

  
1254 1254
pRecreateDisksInfo :: Field
1255 1255
pRecreateDisksInfo =
1256 1256
  withDoc "Disk list for recreate disks" .

Also available in: Unified diff