[PATCH 05/19] Add missing log_method_call()s.

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

 



Call log_method_call() in MultipathDevice.addParent() and
Device.setupParents()
---
 storage/devices.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index d31ceae..ead7ae8 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -305,6 +305,7 @@ class Device(object):
 
     def setupParents(self):
         """ Run setup method of all parent devices. """
+        log_method_call(self, name=self.name, kids=self.kids)
         for parent in self.parents:
             parent.setup()
 
@@ -2972,6 +2973,8 @@ class MultipathDevice(DMDevice):
         return "WWID %s" % (self.wwid,)
 
     def addParent(self, parent):
+        """ Add a parent device to the mpath. """
+        log_method_call(self, self.name, status=self.status)
         if self.status:
             self.teardown()
             self.parents.append(parent)
-- 
1.6.5.2

_______________________________________________
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