mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
salt.modules.lxc: ensure lxc is running *before* call to seed.apply
This commit is contained in:
parent
95431905a7
commit
fa3fa3a011
@ -1070,12 +1070,12 @@ def bootstrap(name, config=None, approve_key=True, install=True):
|
||||
if not infos:
|
||||
return None
|
||||
|
||||
prior_state = _ensure_running(name)
|
||||
|
||||
__salt__['seed.apply'](infos['rootfs'], id_=name, config=config,
|
||||
approve_key=approve_key, install=False,
|
||||
prep_install=True)
|
||||
|
||||
prior_state = _ensure_running(name)
|
||||
|
||||
cmd = 'bash -c "if type salt-minion; then exit 0; '
|
||||
if install:
|
||||
cmd += 'else sh /tmp/bootstrap.sh -c /tmp; '
|
||||
|
Loading…
Reference in New Issue
Block a user