Skip to content

Commit

Permalink
Change expected docker error message in case of network unavailability
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslaw-pietraszek-vml committed Feb 20, 2023
1 parent e135972 commit 8ec5e7b
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 8ec5e7b

Please sign in to comment.