[PATCH 12/13] Factor some trivial common code

Matthew W. S. Bell matthew at bells23.org.uk
Sat Apr 25 18:18:37 UTC 2009


From: Matthew W. S. Bell <mentor at engelbert.(none)>


Signed-off-by: Matthew W. S. Bell <matthew at bells23.org.uk>
---
 src/netconf/ifaces/dhcp/dhcp3_client.py |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/netconf/ifaces/dhcp/dhcp3_client.py b/src/netconf/ifaces/dhcp/dhcp3_client.py
index a0762c9..1d00e40 100644
--- a/src/netconf/ifaces/dhcp/dhcp3_client.py
+++ b/src/netconf/ifaces/dhcp/dhcp3_client.py
@@ -85,14 +85,11 @@ class dhclient3Reactor(BaseBufferedFdReactor):
             if callable(fn):
                 ret = fn(data)
                 result = dhclient3Reactor.DHCPResult(reason)
-                self._log.debug('calling %s with result %s...' % (self._cb_result,
-                                                                  result))
-                self._cb_result(result)
             else:
                 result = dhclient3Reactor.UnknownReason(reason)
-                self._log.debug('calling %s with result %s...' % (self._cb_result,
-                                                                  result))
-                self._cb_result(result)
+            self._log.debug('calling %s with result %s...' % (self._cb_result,
+                                                              result))
+            self._cb_result(result)
 
     @public
     def __call__(self, op, fd, core):
-- 
1.6.2.4




More information about the netconf-devel mailing list