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
Jérome Perrin
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
Hide 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):
if
alter_network
:
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
partition
.
path
=
os
.
path
.
join
(
self
.
instance_root
,
partition
.
reference
)
partition
.
user
.
setPath
(
partition
.
path
)
...
...
@@ -479,12 +479,15 @@ class Computer(object):
address
[
'addr'
]))
else
:
raise
ValueError
(
'Address %r is incorrect'
%
address
[
'addr'
])
finally
:
if
alter_network
and
create_tap
and
self
.
interface
.
attach_to_tap
:
try
:
self
.
partition_list
[
0
].
tap
.
detach
()
except
IndexError
:
pass
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
:
try
:
self
.
partition_list
[
0
].
tap
.
detach
()
except
IndexError
:
pass
class
Partition
(
object
):
...
...
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