diff --git a/slapos/slap/slap.py b/slapos/slap/slap.py index ff3871b5e1201cca834c5f0b0aba7ab742a167ed..a65de1f9e6f2e6b6c56e07d6df36090444cd527e 100644 --- a/slapos/slap/slap.py +++ b/slapos/slap/slap.py @@ -212,8 +212,6 @@ def _syncComputerInformation(func): Synchronize computer object with server information """ def decorated(self, *args, **kw): - if getattr(self, '_synced', 0): - return func(self, *args, **kw) # XXX: This is a ugly way to keep backward compatibility, # We should stablise slap library soon. try: @@ -226,9 +224,6 @@ def _syncComputerInformation(func): setattr(self, key, value.encode('utf-8')) else: setattr(self, key, value) - setattr(self, '_synced', True) - for computer_partition in self.getComputerPartitionList(): - setattr(computer_partition, '_synced', True) return func(self, *args, **kw) return decorated @@ -325,9 +320,6 @@ def _syncComputerPartitionInformation(func): setattr(self, key, new_dict) else: setattr(self, key, value) - setattr(self, '_synced', True) - for computer_partition in self.getComputerPartitionList(): - setattr(computer_partition, '_synced', True) return func(self, *args, **kw) return decorated