Commit 20420ea6 authored by Antoine Catton's avatar Antoine Catton

Add call function in slapos.container.prepare

parent a537db8b
......@@ -2,6 +2,7 @@
import ConfigParser
import os
import subprocess
import lockfile
......@@ -96,3 +97,10 @@ def destroy(partition_path, conf):
# TODO: Destroy container
return failure
def call(command_line):
process = subprocess.Popen(command_line, stdin=subprocess.PIPE)
process.stdin.flush()
process.stdin.close()
return process.wait()
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