Skip to content
This repository was archived by the owner on Apr 15, 2024. It is now read-only.

Commit ee81905

Browse files
committed
fix #131: update max ttl to 86400 to conform to consul
1 parent 7a6fbb4 commit ee81905

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

consul/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ def create(
14901490
14911491
when *ttl* is provided, the session is invalidated if it is not
14921492
renewed before the TTL expires. If specified, it is an integer of
1493-
seconds. Currently it must be between 10 and 3600 seconds.
1493+
seconds. Currently it must be between 10 and 86400 seconds.
14941494
14951495
By default the session will be created in the current datacenter
14961496
but an optional *dc* can be provided.
@@ -1515,7 +1515,7 @@ def create(
15151515
if behavior != 'release':
15161516
data['behavior'] = behavior
15171517
if ttl:
1518-
assert 10 <= ttl <= 3600
1518+
assert 10 <= ttl <= 86400
15191519
data['ttl'] = '%ss' % ttl
15201520
if data:
15211521
data = json.dumps(data)

0 commit comments

Comments
 (0)