Fix Topology tab for some data sets

Fix Topology tab for lists of atomic (not dictionary) values in object
model.

Change-Id: Iff76cf7b794c8d1a1f706d5df006888a267e56d7
This commit is contained in:
Timur Sufiev 2014-04-28 17:22:36 +04:00
parent 6f6c1b5855
commit 611d1a580b
1 changed files with 3 additions and 2 deletions

View File

@ -168,8 +168,9 @@ def render_d3_data(environment):
d3_data['nodes'].append(service_node)
def rec(node_data, node_key, parent_node=None):
node_type = node_data.get('?', {}).get('type') if \
isinstance(node_data, types.DictType) else None
if not isinstance(node_data, types.DictType):
return
node_type = node_data.get('?', {}).get('type')
atomics, containers = _split_seq_by_predicate(
node_data.iteritems(), _is_atomic)
if node_type and node_data is not parent_node: