Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
slapos.core
Commits
d6ef312b
Commit
d6ef312b
authored
Oct 07, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Format: don't prevent to process all partitions if one of them failed.
parent
899c423e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
slapos/format.py
slapos/format.py
+11
-8
No files found.
slapos/format.py
View file @
d6ef312b
...
@@ -418,8 +418,8 @@ class Computer(object):
...
@@ -418,8 +418,8 @@ class Computer(object):
if
alter_network
:
if
alter_network
:
self
.
_speedHackAddAllOldIpsToInterface
()
self
.
_speedHackAddAllOldIpsToInterface
()
try
:
for
partition_index
,
partition
in
enumerate
(
self
.
partition_list
):
for
partition_index
,
partition
in
enumerate
(
self
.
partition_list
):
try
:
# Reconstructing User's
# Reconstructing User's
partition
.
path
=
os
.
path
.
join
(
self
.
instance_root
,
partition
.
reference
)
partition
.
path
=
os
.
path
.
join
(
self
.
instance_root
,
partition
.
reference
)
partition
.
user
.
setPath
(
partition
.
path
)
partition
.
user
.
setPath
(
partition
.
path
)
...
@@ -479,7 +479,10 @@ class Computer(object):
...
@@ -479,7 +479,10 @@ class Computer(object):
address
[
'addr'
]))
address
[
'addr'
]))
else
:
else
:
raise
ValueError
(
'Address %r is incorrect'
%
address
[
'addr'
])
raise
ValueError
(
'Address %r is incorrect'
%
address
[
'addr'
])
finally
:
except
:
self
.
logger
.
error
(
'Error while processing partition %s:
\
n
%s'
%
(
partition
.
user
.
name
,
traceback
.
format_exc
()))
if
alter_network
and
create_tap
and
self
.
interface
.
attach_to_tap
:
if
alter_network
and
create_tap
and
self
.
interface
.
attach_to_tap
:
try
:
try
:
self
.
partition_list
[
0
].
tap
.
detach
()
self
.
partition_list
[
0
].
tap
.
detach
()
...
...
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