diff --git a/configdb/db/interface/etcd_interface.py b/configdb/db/interface/etcd_interface.py index 4043eb4babeb3421a9b462ac5e93ed56f5a54375..6d3e67028133733d01136144c3ff7759088695c3 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