From 09ba16fa988b33bbf06597c06e2723cead9f8983 Mon Sep 17 00:00:00 2001
From: Per Cederqvist <ceder@lysator.liu.se>
Date: Thu, 28 Dec 2006 07:49:22 +0000
Subject: [PATCH] Allow the host name in the login prompt to be a FQDN.

---
 check_hydra | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check_hydra b/check_hydra
index ff232a6..989c341 100755
--- a/check_hydra
+++ b/check_hydra
@@ -59,7 +59,7 @@ def check_hydra(hydra, hostname):
 
     x = pcl_expect.Controller()
     while x.loop():
-        if x.re(t, "%s .*login: " % hostname):
+        if x.re(t, "%s[a-z.]* .*login: " % hostname):
             ok(repr(t.consumed.strip()))
         elif x.timeout():
             critical("timeout while waiting for login prompt")
-- 
GitLab