diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index 0f1a69c926a0f92663dbcc9867cf52cef27357f4..0b94d64dabb42f2dde161aab54fa210d191225b6 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -2160,7 +2160,7 @@ class LUAddNode(LogicalUnit):
       if result[verifier].data['nodelist']:
         for failed in result[verifier].data['nodelist']:
           feedback_fn("ssh/hostname verification failed %s -> %s" %
-                      (verifier, result[verifier]['nodelist'][failed]))
+                      (verifier, result[verifier].data['nodelist'][failed]))
         raise errors.OpExecError("ssh/hostname verification failed.")
 
     # Distribute updated /etc/hosts and known_hosts to all nodes,