lxc: remove merge cruft

Signed-off-by: Mathieu Le Marec - Pasquet <kiorky@cryptelium.net>
This commit is contained in:
Mathieu Le Marec - Pasquet 2015-05-20 21:41:12 +02:00
parent 725b0462ca
commit 139372c055

View file

@ -1369,10 +1369,6 @@ def init(name,
chunks = read_conf(path, out_format='commented')
if old_chunks != chunks:
to_reboot = True
if remove_seed_marker:
run(name,
'rm -f \'{0}\''.format(SEED_MARKER),
python_shell=False)
# last time to be sure any of our property is correctly applied
cfg = _LXCConfig(name=name, network_profile=network_profile,
@ -1405,6 +1401,12 @@ def init(name,
ret['changes'] = changes_dict
return ret
if remove_seed_marker:
run(name,
'rm -f \'{0}\''.format(SEED_MARKER),
chroot_fallback=False,
python_shell=False)
# set the default user/password, only the first time
if ret.get('result', True) and password:
gid = '/.lxc.initial_pass'