Removing realm key from etcd.

This commit is contained in:
Charlton Austin 2016-12-02 11:13:17 -05:00
parent 376578115f
commit 0c7a2e4645
2 changed files with 6 additions and 4 deletions

View file

@ -30,7 +30,7 @@ class EtcdCanceller(object):
""" Writes etcd message to cancel build_uuid. """
logger.info("Cancelling build %s".format(build_uuid))
try:
self._etcd_client.write("{}{}".format(self._cancel_prefix, build_uuid), build_uuid)
self._etcd_client.write("{}{}".format(self._cancel_prefix, build_uuid), build_uuid, ttl=0)
return True
except etcd.EtcdException:
logger.exception("Failed to write to etcd client %s", build_uuid)