Return changes on successful lxc.create from salt-cloud

Otherwise user is not able to find if LXC container was created when
using cloud.profile state. No changes were reported and output was
always showing container as already existing and not created because of
state applied.
This commit is contained in:
cellscape 2015-05-08 12:21:50 +06:00
parent 4409eabb83
commit 42bd64b9b3

View file

@ -426,6 +426,8 @@ def create(vm_, call=None):
ret['result'] = cret['result']
if not ret['result']:
ret['Error'] = 'Error while creating {0},'.format(vm_['name'])
else:
ret['changes']['created'] = 'created'
return ret