Skip to content

Commit 55ec693

Browse files
fix: parse all definitions of true for splunkd scheme (#221)
1 parent 6b2596e commit 55ec693

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
# IDE related files
12
*.idea
23
*.DS_Store*
4+
.venv/
5+
6+
# Compiled files
37
__pycache__
48
*.pyc
59
*.pyo
6-
.coverage
10+
11+
.coverage

solnlib/splunkenv.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
from io import StringIO
2525
from typing import List, Optional, Tuple, Union
2626

27+
from .utils import is_true
28+
2729
__all__ = [
2830
"make_splunkhome_path",
2931
"get_splunk_host_info",
@@ -177,7 +179,7 @@ def get_splunkd_access_info() -> Tuple[str, str, int]:
177179
Tuple of (scheme, host, port).
178180
"""
179181

180-
if get_conf_key_value("server", "sslConfig", "enableSplunkdSSL") == "true":
182+
if is_true(get_conf_key_value("server", "sslConfig", "enableSplunkdSSL")):
181183
scheme = "https"
182184
else:
183185
scheme = "http"

0 commit comments

Comments
 (0)