Commit 9d9caed7 authored by Łukasz Nowak's avatar Łukasz Nowak

Reset request cache while renaming.

parent 13959719
...@@ -886,6 +886,11 @@ class SlapTool(BaseTool): ...@@ -886,6 +886,11 @@ class SlapTool(BaseTool):
software_instance = self._getSoftwareInstanceForComputerPartition( software_instance = self._getSoftwareInstanceForComputerPartition(
computer_id, computer_partition_id, computer_id, computer_partition_id,
slave_reference) slave_reference)
hosting = software_instance.getSpecialise()
for name in [software_instance.getTitle(), new_name]:
# reset request cache
key = '_'.join([hosting, name])
self._storeLastData(key, {})
return software_instance.rename(new_name=new_name, return software_instance.rename(new_name=new_name,
comment="Rename %s into %s" % (software_instance.title, new_name)) comment="Rename %s into %s" % (software_instance.title, new_name))
......
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