def fromTag()

in app/collectors/instance.scala [168:194]


  def fromTag(
      dnsName: String,
      tag: Option[String]
  ): Option[Seq[ManagementEndpoint]] = {
    tag match {
      case Some("none") => None
      case Some(tagContent) =>
        Some(
          tagContent
            .split(";")
            .filterNot(_.isEmpty)
            .toIndexedSeq
            .map { endpoint =>
              val params = endpoint
                .split(",")
                .filterNot(_.isEmpty)
                .flatMap {
                  case KeyValue(key, value) => Some(key -> value)
                  case _                    => None
                }
                .toMap
              fromMap(dnsName, params)
            }
        )
      case None => Some(Seq(fromMap(dnsName)))
    }
  }