Fix display of single event ...

Assumed a list of events.

Change-Id: I1a22ee91d95a4ef473f4896f07caa95c1202df7f
This commit is contained in:
Sandy Walsh 2015-04-13 08:56:46 -07:00
parent 582b2ac22f
commit 312dbbdb1c
2 changed files with 3 additions and 1 deletions

View File

@ -221,6 +221,8 @@ class Events(object):
response = self.do_event(version, arguments) response = self.do_event(version, arguments)
raw_rows = response.json(object_hook=jsonutil.object_hook) raw_rows = response.json(object_hook=jsonutil.object_hook)
if isinstance(raw_rows, dict):
raw_rows = [raw_rows]
keys = set() keys = set()
for row in raw_rows: for row in raw_rows:
keys.update(row.keys()) keys.update(row.keys())

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = klugman name = klugman
version = 0.3 version = 0.4
author = Dark Secret Software Inc. author = Dark Secret Software Inc.
author-email = admin@darksecretsoftware.com author-email = admin@darksecretsoftware.com
summary = StackTach.v3 Client summary = StackTach.v3 Client