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
Hardik Juneja
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
Hide 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,13 +873,15 @@ class SlapTool(BaseTool):
...
@@ -873,13 +873,15 @@ 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
software_instance
.
_parameter_dict
=
self
.
_instanceXmlToDict
(
if
slave_instance
is
not
None
:
slave_instance
.
pop
(
'xml'
))
software_instance
.
_parameter_dict
=
self
.
_instanceXmlToDict
(
software_instance
.
_connection_dict
=
self
.
_instanceXmlToDict
(
slave_instance
.
pop
(
'xml'
))
slave_instance
.
pop
(
'connection_xml'
))
software_instance
.
_connection_dict
=
self
.
_instanceXmlToDict
(
slave_instance
.
pop
(
'connection_xml'
))
return
xml_marshaller
.
xml_marshaller
.
dumps
(
software_instance
)
return
xml_marshaller
.
xml_marshaller
.
dumps
(
software_instance
)
####################################################
####################################################
...
...
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