Skip to content
Permalink
Browse files

Change to keywords dump format to avoid collision between rtypes

api_version: 2
  • Loading branch information...
cvaroqui committed Jul 30, 2019
1 parent c1b67f7 commit 4f02bf3fa397b4d0cd62c0a429e5efc2ef5668dc
Showing with 4 additions and 4 deletions.
  1. +3 −3 lib/keywords.py
  2. +1 −1 lib/osvcd_shared.py
@@ -194,7 +194,7 @@ def template_rst(self, section=None):
return s

def dump(self):
data = {}
data = {"keyword": self.keyword}
if self.rtype:
data["type"] = self.rtype
if self.at:
@@ -228,9 +228,9 @@ def __iadd__(self, o):
return self

def dump(self):
data = {}
data = []
for kw in self.keywords:
data[kw.keyword] = kw.dump()
data.append(kw.dump())
return data

def template(self, fmt="text", write=False):
@@ -38,7 +38,7 @@
COMPAT_VERSION = 10

# expose api handlers version
API_VERSION = 1
API_VERSION = 2

# node and cluster conf lock to block reading changes during a multi-write
# transaction (ex daemon join)

0 comments on commit 4f02bf3

Please sign in to comment.
You can’t perform that action at this time.