Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.toolbox
Commits
20420ea6
Commit
20420ea6
authored
Jul 20, 2012
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add call function in slapos.container.prepare
parent
a537db8b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
slapos/container/prepare.py
slapos/container/prepare.py
+8
-0
No files found.
slapos/container/prepare.py
View file @
20420ea6
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
import
ConfigParser
import
ConfigParser
import
os
import
os
import
subprocess
import
lockfile
import
lockfile
...
@@ -96,3 +97,10 @@ def destroy(partition_path, conf):
...
@@ -96,3 +97,10 @@ def destroy(partition_path, conf):
# TODO: Destroy container
# TODO: Destroy container
return
failure
return
failure
def
call
(
command_line
):
process
=
subprocess
.
Popen
(
command_line
,
stdin
=
subprocess
.
PIPE
)
process
.
stdin
.
flush
()
process
.
stdin
.
close
()
return
process
.
wait
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment