mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
4409eabb83
commit
42bd64b9b3
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue