Revision 6ece11be

b/htools/Ganeti/Objects.hs
338 338
  , simpleField "highest_used_port"         [t| Int      |]
339 339
  , simpleField "tcpudp_port_pool"          [t| [Int]    |]
340 340
  , simpleField "mac_prefix"                [t| String   |]
341
  , simpleField "volume_group_name"         [t| String   |]
341
  , optionalField $ simpleField "volume_group_name"         [t| String   |]
342 342
  , simpleField "reserved_lvs"              [t| [String] |]
343 343
--  , simpleField "drbd_usermode_helper"      [t| String   |]
344 344
-- , simpleField "default_bridge"          [t| String   |]
b/lib/backend.py
532 532
    vg_free = int(round(vginfo[0][0], 0))
533 533
    vg_size = int(round(vginfo[0][1], 0))
534 534
  else:
535
    vg_free = None
536
    vg_size = None
535
    vg_free = 0
536
    vg_size = 0
537 537

  
538 538
  return {
539 539
    "name": name,

Also available in: Unified diff