only remove key key if exists
This commit is contained in:
parent
90f2b37084
commit
eba92e5d67
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@ class SpecificEtcdEntryBase:
|
|||
|
||||
def original_keys(self):
|
||||
r = dict(self.__dict__)
|
||||
del r["key"]
|
||||
if "key" in r:
|
||||
del r["key"]
|
||||
return r
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in a new issue