summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJimmy Zelinskie <jimmyzelinskie@gmail.com>2015-02-23 13:44:58 -0500
committerJimmy Zelinskie <jimmyzelinskie@gmail.com>2015-02-23 13:44:58 -0500
commit1d65aa6a137a759f52017bdf312cd51c3b231eea (patch)
treeb31b30c8c58e87f7a09f3c2639215125c3a7e8dd /src
parentce3e8f0fa3f4802afebba7990260e07f5b8f0e4e (diff)
check if ttl is not None in write
This resolves a bug where if you set the ttl=0, the ttl never gets added.
Diffstat (limited to 'src')
-rw-r--r--src/etcd/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etcd/client.py b/src/etcd/client.py
index 516e335..03e6745 100644
--- a/src/etcd/client.py
+++ b/src/etcd/client.py
@@ -247,7 +247,7 @@ class Client(object):
if value is not None:
params['value'] = value
- if ttl:
+ if ttl is not None:
params['ttl'] = ttl
if dir: