mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-05-21 03:15:24 +00:00
PEP8 fixes
This commit is contained in:
+4
-4
@@ -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 "
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user