mirror of
https://github.com/docker/compose.git
synced 2026-08-04 14:47:40 +00:00
Validate run restart option value. Default value is “none”, instead of “no”, this is more in line with compose values, and changes only the default so should not have too much impact on legacy usage.
This commit is contained in:
parent
a2c2d6aa5d
commit
f442eafe0b
16 changed files with 145 additions and 86 deletions
11
utils/stringutils.go
Normal file
11
utils/stringutils.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package utils
|
||||
|
||||
// StringContains check if an array contains a specific value
|
||||
func StringContains(array []string, needle string) bool {
|
||||
for _, val := range array {
|
||||
if val == needle {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue