removed notification dive

This commit is contained in:
Thomas Maddox 2013-06-20 11:07:43 -05:00
parent 6676e85c0f
commit 8ecd7a4a81

View File

@ -99,15 +99,6 @@ def make_report(yesterday=None, start_hour=0, hours=24, percentile=97,
operation = cmd
break
# Brace yourself. We are now painfully digging into the
# notification to get the os_type attribute
if os_type == "other" and raw.json:
notification = json.loads(raw.json)
if notification[1]:
os_type = notification[1].get('payload', {})\
.get('image_meta', {})\
.get('os_type', "other")
if raw.image_type:
image_type_num |= raw.image_type