Fix engine results processing

Store applications returned by engine as services

Change-Id: Ib377f163760b067c940482bfd72236c7cc956545
Partial-bug: #1305142
This commit is contained in:
Serg Melikyan 2014-04-16 10:20:09 +04:00
parent 6291c85940
commit 443aa5abcb

View File

@ -59,6 +59,9 @@ class ResultEndpoint(object):
return
environment.description = result
environment.description['Objects']['services'] = \
environment.description['Objects'].get('applications', [])
del environment.description['Objects']['applications']
environment.networking = result.get('networking', {})
environment.version += 1
environment.save(unit)