Skip to content

Commit

Permalink
Merge pull request #34 from wttech/33-unable-to-check-docker-network-…
Browse files Browse the repository at this point in the history
…availability

Change expected docker error message in case of network unavailability
  • Loading branch information
krystian-panek-vmltech authored Feb 21, 2023
2 parents e135972 + 8ec5e7b commit 31aa39a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ abstract class Stack(val environment: EnvironmentExtension) {
}
return when {
result.exitValue == 0 -> true
result.errorString.contains("Error: No such network") -> false
result.errorString.contains(Regex("(?i)not found|no such")) -> false
else -> throw StackException("Unable to determine Docker stack '${internalName.get()}' status. Error: '${result.errorString}'")
}
}
Expand Down

0 comments on commit 31aa39a

Please sign in to comment.