From 31b1f6aba0c36abbb962811a4142388731a8cda6 Mon Sep 17 00:00:00 2001 From: joe <joe@autistici.org> Date: Sun, 1 Dec 2013 10:34:46 +0100 Subject: [PATCH] Correcting typo. --- configdb/db/interface/etcd_interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configdb/db/interface/etcd_interface.py b/configdb/db/interface/etcd_interface.py index 4043eb4..6d3e670 100644 --- a/configdb/db/interface/etcd_interface.py +++ b/configdb/db/interface/etcd_interface.py @@ -41,7 +41,7 @@ class EtcdSession(inmemory_interface.InMemorySession): idx = self.db.conn.read(path).modifiedIndex opts = {'prevIndex': idx} except KeyError: - opts = {'prevExists': False} + opts = {'prevExist': False} # Will raise ValueError if the test fails. try: @@ -188,7 +188,7 @@ class EtcdInterface(base.DbInterface): } self.conn.write(path, json.dumps(audit)) try: - self.conn.write(path, json.dumps(audit), prevExists=False) + self.conn.write(path, json.dumps(audit), prevExist=False) except ValueError: pass -- GitLab