mirror of
https://github.com/xcat2/confluent.git
synced 2025-07-09 06:11:40 +00:00
Mandate that all http collections return children as list
Currently, an empty collection has no 'item' entry, a singleton value, or a list depending on whether it has 0, 1, or more children. Modify this so that at least 1 and more children are consistent.
This commit is contained in:
@ -487,6 +487,8 @@ def _assemble_json(responses, resource, url, extension):
|
||||
links[hk].append(haldata[hk])
|
||||
else:
|
||||
links[hk] = [links[hk], haldata[hk]]
|
||||
elif hk == 'item':
|
||||
links[hk] = [haldata[hk],]
|
||||
else:
|
||||
links[hk] = haldata[hk]
|
||||
else:
|
||||
|
Reference in New Issue
Block a user