Revision 845b7ed1 lib/cmdlib/instance_storage.py

b/lib/cmdlib/instance_storage.py
460 460
        vg = disk.get(constants.IDISK_VG, vgname)
461 461
        return (vg, names[idx])
462 462

  
463
    elif template_name in constants.DTS_FILEBASED:
463
    elif template_name == constants.DT_GLUSTER:
464
      logical_id_fn = lambda _1, disk_index, _2: \
465
        (file_driver, "ganeti/%s.%d" % (instance_uuid,
466
                                        disk_index))
467

  
468
    elif template_name in constants.DTS_FILEBASED: # Gluster handled above
464 469
      logical_id_fn = \
465 470
        lambda _, disk_index, disk: (file_driver,
466 471
                                     "%s/disk%d" % (file_storage_dir,

Also available in: Unified diff