Skip to content
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.

Commit

Permalink
Fix cloud verify on all paths verified
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Galic committed Aug 1, 2018
1 parent 884b2e7 commit 26dbc8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/scala/com/gu/tip/Tip.scala
Expand Up @@ -81,7 +81,7 @@ trait Tip extends TipIf with LazyLogging {
inMemoryResult: TipResponse): Future[TipResponse] =
Future {
inMemoryResult match {
case PathsActorResponse(PathIsVerified(pathname))
case PathsActorResponse(PathIsVerified(_)) | LabelSet | FailedToSetLabel
if configuration.cloudEnabled =>
verifyPath(configuration.tipConfig.boardSha, pathname).run.attempt
.map({
Expand All @@ -91,7 +91,8 @@ trait Tip extends TipIf with LazyLogging {

case Right((logs, result)) =>
logs.foreach(log => logger.info(log.toString))
logger.info(s"Successfully verified cloud path $pathname!")
logger.info(
s"Successfully verified cloud path $pathname on board ${configuration.tipConfig.boardSha}!")
CloudPathVerified
})
.unsafeRunSync()
Expand Down

0 comments on commit 26dbc8f

Please sign in to comment.