Group everything under "assets" again

This commit groups all the assets in the json under the key "assets"
as it traditionally did. A recent change to exclude any assets marked
as inactive caused the issue.

Change-Id: I3511fa3f9e07a7f4d7358f53aae54d65ebc1b432
Closes-Bug: 1533109
This commit is contained in:
Christopher Aedo 2016-01-12 08:09:22 -08:00
parent c764f95ae8
commit 7cd0e688b2
1 changed files with 1 additions and 0 deletions

View File

@ -24,4 +24,5 @@ for a in y['assets']:
if 'environment' in s:
s['environment'] = yaml.dump(s['environment'])
y = [a for a in y['assets'] if a.get('active', True)]
y = {'assets': y}
json.dump(y, sys.stdout)