PEP8 fixes

This commit is contained in:
Sean Whalen
2019-01-09 14:14:39 -05:00
parent 6a6370dbda
commit b64fa96d88
2 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -141,11 +141,11 @@ def _main():
help="append this suffix to the "
"dmarc_aggregate and dmarc_forensic "
"Elasticsearch index names, joined by _")
arg_parser.add_argument("--elasticsearch-use-ssl", default=False, action="store_true",
help="enable ssl connection to elasticsearch server")
arg_parser.add_argument("--elasticsearch-use-ssl", default=False,
action="store_true",
help="Use SSL when connecting to Elasticsearch")
arg_parser.add_argument("--elasticsearch-ssl-cert-path", default=None,
help="if enabled ssl connection to elasticsearch"
"this is the path to the cert which validates the server")
help="Path to the Elasticsearch SSL certificate")
arg_parser.add_argument("--hec", help="the URL to a Splunk HTTP Event "
"Collector (HEC)")
arg_parser.add_argument("--hec-token", help="the authorization token for "
+3 -3
View File
@@ -172,9 +172,9 @@ def set_hosts(hosts, use_ssl=False, ssl_cert_path=None):
Sets the Elasticsearch hosts to use
Args:
hosts: A single hostname or URL, or list of hostnames or URLs
[use_ssl]: boolean, if True enables HTTPS connection to the server
[ssl_cert_path]: string, path to the certificate chain to validate the connection
hosts (str): A single hostname or URL, or list of hostnames or URLs
use_ssl (bool): Use a HTTPS connection to the server
ssl_cert_path (str): Path to the certificate chain
"""
if type(hosts) != list:
hosts = [hosts]