in app/models/FCInfo.scala [18:30]
def fromXml(xml:NodeSeq):Either[String, FCDomain] = try {
if(!xml.head.label.startsWith("Domain")) throw new RuntimeException(s"expected a Domain line, got ${xml.head.label}")
Right(new FCDomain(
xml.head.label,
getAttrOption(xml,"Speed"),
getAttrOption(xml,"Status"),
getAttrOption(xml,"WWN"),
(xml \@ "lunCount").toInt
))
} catch {
case ex:Throwable=>
Left(ex.toString)
}