Allow the awslogs log driver (#28)

This commit is contained in:
Sébastien Maccagnoni 2018-01-02 10:25:42 +01:00 committed by Manuel Vogel
parent c8bbdbc091
commit b06fa7e2ba

View file

@ -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
},