Commit 754d29c3 authored by Antoine Catton's avatar Antoine Catton

Adding renamming capability.

This is a partial cherry-pick of 68a50590.
parent 698c15c0
......@@ -378,6 +378,14 @@ class ComputerPartition(SlapDocument):
'computer_partition_id': self._partition_id,
'message': message})
def rename(self, new_name, slave_reference=None):
self._connection_helper.POST('/rename', {
'computer_id': self._computer_id,
'computer_partition_id': self._computer_id,
'new_name': new_name,
'slave_reference': slave_reference,
})
def getId(self):
return self._partition_id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment