[27516] in Source-Commits

home help back first fref pref prev next nref lref last post

python-hesiod commit: Supply the full message for ERR lockers

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Fri Oct 25 11:06:12 2013

Date: Fri, 25 Oct 2013 11:06:05 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201310251506.r9PF65FZ021270@drugstore.mit.edu>
To: source-commits@MIT.EDU

https://github.com/mit-athena/python-hesiod/commit/8b1d7575d5b0fc2e179ae06a25d6990f8674a9cf
commit 8b1d7575d5b0fc2e179ae06a25d6990f8674a9cf
Author: Jonathan Reed <jdreed@mit.edu>
Date:   Thu Oct 10 10:57:52 2013 -0400

    Supply the full message for ERR lockers
    
    When returning an ERR locker, re-assemble the data field into the
    message, rather than returning the first word. (Trac: #1408)

 hesiod.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hesiod.py b/hesiod.py
index 5cb3d1b..596289a 100755
--- a/hesiod.py
+++ b/hesiod.py
@@ -55,7 +55,7 @@ class FilsysLookup(Lookup):
                                         priority=priority))
             elif type == 'ERR':
                 self.filsys.append(dict(type=type,
-                                        message=parts[1],
+                                        message=" ".join(parts[1::]),
                                         priority=priority))
             elif type == 'UFS':
                 self.filsys.append(dict(type=type,

home help back first fref pref prev next nref lref last post