mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-01-03 05:19:34 -05:00
Allow the awslogs log driver (#28)
This commit is contained in:
parent
c8bbdbc091
commit
b06fa7e2ba
1 changed files with 2 additions and 2 deletions
|
|
@ -362,9 +362,9 @@ func resourceDockerContainer() *schema.Resource {
|
|||
Default: "json-file",
|
||||
ValidateFunc: func(v interface{}, k string) (ws []string, es []error) {
|
||||
value := v.(string)
|
||||
if !regexp.MustCompile(`^(json-file|syslog|journald|gelf|fluentd)$`).MatchString(value) {
|
||||
if !regexp.MustCompile(`^(json-file|syslog|journald|gelf|fluentd|awslogs)$`).MatchString(value) {
|
||||
es = append(es, fmt.Errorf(
|
||||
"%q must be one of \"json-file\", \"syslog\", \"journald\", \"gelf\", or \"fluentd\"", k))
|
||||
"%q must be one of \"json-file\", \"syslog\", \"journald\", \"gelf\", \"fluentd\", or \"awslogs\"", k))
|
||||
}
|
||||
return
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue