Re: [PATCH] Don't log the big parted.Partition string every time we do a flag op.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ack.

On 01/13/2010 12:40 AM, David Lehman wrote:
---
  storage/devices.py |   12 ++++--------
  1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index cb68456..61b9116 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1167,32 +1167,28 @@ class PartitionDevice(StorageDevice):
      bootable = property(_getBootable, _setBootable)

      def flagAvailable(self, flag):
-        log_method_call(self, path=self.path, flag=flag,
-                        part=self.partedPartition)
+        log_method_call(self, path=self.path, flag=flag)
          if not self.partedPartition:
              return

          return self.partedPartition.isFlagAvailable(flag)

      def getFlag(self, flag):
-        log_method_call(self, path=self.path, flag=flag,
-                        part=self.partedPartition)
+        log_method_call(self, path=self.path, flag=flag)
          if not self.partedPartition or not self.flagAvailable(flag):
              return

          return self.partedPartition.getFlag(flag)

      def setFlag(self, flag):
-        log_method_call(self, path=self.path, flag=flag,
-                        part=self.partedPartition)
+        log_method_call(self, path=self.path, flag=flag)
          if not self.partedPartition or not self.flagAvailable(flag):
              return

          self.partedPartition.setFlag(flag)

      def unsetFlag(self, flag):
-        log_method_call(self, path=self.path, flag=flag,
-                        part=self.partedPartition)
+        log_method_call(self, path=self.path, flag=flag)
          if not self.partedPartition or not self.flagAvailable(flag):
              return


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux