salt.modules.lxc: ensure lxc is running *before* call to seed.apply

This commit is contained in:
Matthew Williams 2014-03-19 02:06:44 -04:00
parent 95431905a7
commit fa3fa3a011

View File

@ -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; '