mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Return correct result when creating cloud LXC container
At the end of call chain lxc.init returns boolean result, exactly what we need and not vice verse.
This commit is contained in:
parent
377015c881
commit
4409eabb83
1 changed files with 1 additions and 2 deletions
|
@ -423,8 +423,7 @@ def create(vm_, call=None):
|
|||
kwarg['host'] = prov['target']
|
||||
cret = _runner().cmd('lxc.cloud_init', [vm_['name']], kwarg=kwarg)
|
||||
ret['runner_return'] = cret
|
||||
if cret['result']:
|
||||
ret['result'] = False
|
||||
ret['result'] = cret['result']
|
||||
if not ret['result']:
|
||||
ret['Error'] = 'Error while creating {0},'.format(vm_['name'])
|
||||
return ret
|
||||
|
|
Loading…
Add table
Reference in a new issue