Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
slapos.package
Commits
e220e7c3
Commit
e220e7c3
authored
Aug 30, 2012
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed various small problem in slapprepare
parent
b0e52529
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
slapprepare/slapprepare/__init__.py
slapprepare/slapprepare/__init__.py
+2
-11
No files found.
slapprepare/slapprepare/__init__.py
View file @
e220e7c3
...
@@ -363,7 +363,7 @@ def slapprepare():
...
@@ -363,7 +363,7 @@ def slapprepare():
config
.
userConfig
()
config
.
userConfig
()
print
"
\
n
This your configuration:
\
n
"
print
"
\
n
This your configuration:
\
n
"
config
.
displayUserConfig
()
config
.
displayUserConfig
()
if
get_yes_no
(
"
\
n
Do you confirm?"
,
True
):
if
get_yes_no
(
"
\
n
Do you confirm?"
):
break
break
if
config
.
certificates
:
if
config
.
certificates
:
...
@@ -386,7 +386,7 @@ def slapprepare():
...
@@ -386,7 +386,7 @@ def slapprepare():
computer_id
=
get_computer_name
(
os
.
path
.
join
(
'/'
,
slapos_configuration
,
'slapos.cfg'
))
computer_id
=
get_computer_name
(
os
.
path
.
join
(
'/'
,
slapos_configuration
,
'slapos.cfg'
))
print
computer_id
print
"Your Computer is : %s"
%
computer_id
config
.
setConfig
(
mount_dir_path
=
'/'
,
config
.
setConfig
(
mount_dir_path
=
'/'
,
slapos_configuration
=
slapos_configuration
,
slapos_configuration
=
slapos_configuration
,
...
@@ -424,12 +424,3 @@ def slapprepare():
...
@@ -424,12 +424,3 @@ def slapprepare():
print
"Deleting directory: %s"
%
temp_directory
print
"Deleting directory: %s"
%
temp_directory
_call
([
'rm'
,
'-rf'
,
temp_directory
])
_call
([
'rm'
,
'-rf'
,
temp_directory
])
sys
.
exit
(
return_code
)
sys
.
exit
(
return_code
)
if
__name__
==
"__main__"
:
config
=
Config
()
while
True
:
config
.
userConfig
()
print
"
\
n
This your configuration:
\
n
"
config
.
displayUserConfig
()
if
get_yes_no
(
"
\
n
Do you confirm?"
):
break
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