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
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
9fdf00dc
Commit
9fdf00dc
authored
Mar 12, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Slave instances are disabled, so protect against UnboundLocalError.
parent
8bc02232
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
master/product/Vifib/Tool/SlapTool.py
master/product/Vifib/Tool/SlapTool.py
+6
-4
No files found.
master/product/Vifib/Tool/SlapTool.py
View file @
9fdf00dc
...
@@ -873,9 +873,11 @@ class SlapTool(BaseTool):
...
@@ -873,9 +873,11 @@ class SlapTool(BaseTool):
if
shared
:
if
shared
:
# XXX: Dirty hack
# XXX: Dirty hack
slave_instance
=
None
for
slave_instance
in
parameter_dict
.
get
(
"slave_instance_list"
,
[]):
for
slave_instance
in
parameter_dict
.
get
(
"slave_instance_list"
,
[]):
if
slave_instance
[
'slave_title'
]
==
partition_reference
:
if
slave_instance
[
'slave_title'
]
==
partition_reference
:
break
break
if
slave_instance
is
not
None
:
software_instance
.
_parameter_dict
=
self
.
_instanceXmlToDict
(
software_instance
.
_parameter_dict
=
self
.
_instanceXmlToDict
(
slave_instance
.
pop
(
'xml'
))
slave_instance
.
pop
(
'xml'
))
software_instance
.
_connection_dict
=
self
.
_instanceXmlToDict
(
software_instance
.
_connection_dict
=
self
.
_instanceXmlToDict
(
...
...
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