Revision fd38ef95

b/scripts/gnt-instance
539 539
      buf.write("not active\n")
540 540
    else:
541 541
      (path, major, minor, syncp, estt, degr, ldisk) = status
542
      buf.write("%s (%d:%d)" % (path, major, minor))
542
      if major is None:
543
        major_string = "N/A"
544
      else:
545
        major_string = str(major)
546

  
547
      if minor is None:
548
        minor_string = "N/A"
549
      else:
550
        minor_string = str(minor)
551

  
552
      buf.write("%s (%s:%s)" % (path, major_string, minor_string))
543 553
      if dtype in (constants.LD_MD_R1, constants.LD_DRBD7, constants.LD_DRBD8):
544 554
        if syncp is not None:
545 555
          sync_text = "*RECOVERING* %5.2f%%," % syncp

Also available in: Unified diff