Skip to content

Commit 8bf307e

Browse files
JimvinPhilip Langdale
authored and
Philip Langdale
committed
Added TLS parameter to timeseries.py example
(cherry picked from commit 33afb30)
1 parent 83111b7 commit 8bf307e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/examples/timeseries.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,15 @@
6969
CM_HOST = 'localhost'
7070
CM_USER = 'admin'
7171
CM_PASSWD = 'admin'
72+
CM_USE_TLS = False
7273

7374
LOG = logging.getLogger(__name__)
7475

7576
class TimeSeriesQuery(object):
7677
"""
7778
"""
7879
def __init__(self):
79-
self._api = ApiResource(CM_HOST, username=CM_USER, password=CM_PASSWD)
80+
self._api = ApiResource(CM_HOST, username=CM_USER, password=CM_PASSWD, use_tls=CM_USE_TLS)
8081

8182
def query(self, query, from_time, to_time):
8283
return self._api.query_timeseries(query, from_time, to_time)

0 commit comments

Comments
 (0)