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
Léo-Paul Géneau
slapos.core
Commits
a5b2e39a
Commit
a5b2e39a
authored
Jun 01, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop legacy code.
parent
81a00d6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
slapos/slap/slap.py
slapos/slap/slap.py
+1
-10
No files found.
slapos/slap/slap.py
View file @
a5b2e39a
...
...
@@ -600,15 +600,6 @@ class slap:
SlapDocument
.
_connection_helper
=
ConnectionHelper
(
connection_wrapper
,
netloc
,
path
,
key_file
,
cert_file
,
master_ca_file
,
timeout
)
def
_register
(
self
,
klass
,
*
registration_argument_list
):
if
len
(
registration_argument_list
)
==
1
and
type
(
registration_argument_list
[
0
])
==
type
([]):
# in case if list is explicitly passed and there is only one
# argument in registration convert it to list
registration_argument_list
=
registration_argument_list
[
0
]
document
=
klass
(
*
registration_argument_list
)
return
document
def
registerSoftwareRelease
(
self
,
software_release
):
"""
Registers connected representation of software release and
...
...
@@ -621,7 +612,7 @@ class slap:
Registers connected representation of computer and
returns Computer class object
"""
return
self
.
_register
(
Computer
,
computer_guid
)
return
Computer
(
computer_guid
)
def
registerComputerPartition
(
self
,
computer_guid
,
partition_id
):
"""
...
...
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