Commit a060bed1 authored by Łukasz Nowak's avatar Łukasz Nowak

Fixup e86433b1.

In e86433b1 getComputerPartitionList shall not be called on function
object.
parent e86433b1
...@@ -227,7 +227,7 @@ def _syncComputerInformation(func): ...@@ -227,7 +227,7 @@ def _syncComputerInformation(func):
else: else:
setattr(self, key, value) setattr(self, key, value)
setattr(self, '_synced', True) setattr(self, '_synced', True)
for computer_partition in self.getComputerPartitionList(): for computer_partition in computer.getComputerPartitionList():
setattr(computer_partition, '_synced', True) setattr(computer_partition, '_synced', True)
return func(self, *args, **kw) return func(self, *args, **kw)
return decorated return decorated
...@@ -326,7 +326,7 @@ def _syncComputerPartitionInformation(func): ...@@ -326,7 +326,7 @@ def _syncComputerPartitionInformation(func):
else: else:
setattr(self, key, value) setattr(self, key, value)
setattr(self, '_synced', True) setattr(self, '_synced', True)
for computer_partition in self.getComputerPartitionList(): for computer_partition in computer.getComputerPartitionList():
setattr(computer_partition, '_synced', True) setattr(computer_partition, '_synced', True)
return func(self, *args, **kw) return func(self, *args, **kw)
return decorated return decorated
......
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