Fixed code formatting

This commit is contained in:
AntonBazhal 2016-03-22 14:26:36 -04:00
parent 5bd8572b56
commit 5cb11b007a
1 changed files with 3 additions and 3 deletions

View File

@ -92,15 +92,15 @@ func (d *Docker) Gather(acc telegraf.Accumulator) error {
c, err = docker.NewClient(d.Endpoint)
} else {
if d.TLSCert == "" {
return errors.New("tls_cert must be configured when tls_enable is set to true");
return errors.New("tls_cert must be configured when tls_enable is set to true")
}
if d.TLSKey == "" {
return errors.New("tls_key must be configured when tls_enable is set to true");
return errors.New("tls_key must be configured when tls_enable is set to true")
}
if d.TLSCA == "" {
return errors.New("tls_ca must be configured when tls_enable is set to true");
return errors.New("tls_ca must be configured when tls_enable is set to true")
}
c, err = docker.NewTLSClient(d.Endpoint, d.TLSCert, d.TLSKey, d.TLSCA)