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
19
Merge Requests
19
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
0fa4efaa
Commit
0fa4efaa
authored
Nov 24, 2011
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix: modify ComputerPartition.rename in order to avoid sending 'None'
string to vifib master.
parent
74626eee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
slapos/slap/slap.py
slapos/slap/slap.py
+8
-6
No files found.
slapos/slap/slap.py
View file @
0fa4efaa
...
...
@@ -379,12 +379,14 @@ class ComputerPartition(SlapDocument):
'message'
:
message
})
def
rename
(
self
,
new_name
,
slave_reference
=
None
):
self
.
_connection_helper
.
POST
(
'/renameSoftwareInstance'
,
{
'computer_id'
:
self
.
_computer_id
,
'computer_partition_id'
:
self
.
_computer_id
,
'new_name'
:
new_name
,
'slave_reference'
:
slave_reference
,
})
post_dict
=
dict
(
computer_id
=
self
.
_computer_id
,
computer_partition_id
=
self
.
_partition_id
,
new_name
=
new_name
,
)
if
slave_reference
is
not
None
:
post_dict
.
update
(
slave_reference
=
slave_reference
)
self
.
_connection_helper
.
POST
(
'/softwareInstanceRename'
,
post_dict
)
def
getId
(
self
):
return
self
.
_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