Commit f9185201 authored by Antoine Catton's avatar Antoine Catton

Fillin the create function in slapos.container.prepare

parent 20420ea6
......@@ -83,12 +83,9 @@ def stop(sr_directory, partition_path, conf):
def create(sr_directory, partition_path, conf):
failure = 0
# TODO : Create container
return failure
lxc_debian = os.path.join(sr_directory,
'parts/lxc/lib/lxc/templates/lxc-debian')
return call([lxc_debian, '-p', partition_path])
def destroy(partition_path, conf):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment