From 8e4e2af1fa5ee07ef2869fd3f242dad8ae2cc04f Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Sun, 18 Nov 2012 16:47:58 -0800 Subject: [PATCH] this is a simple key, not a hash --- server-ca/testchallenge-daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-ca/testchallenge-daemon.py b/server-ca/testchallenge-daemon.py index 81ceb26bf..c8424622f 100755 --- a/server-ca/testchallenge-daemon.py +++ b/server-ca/testchallenge-daemon.py @@ -95,7 +95,7 @@ def testchallenge(session): # Try to get a unique abbreviated ID (10 hex digits) for i in xrange(20): abbreviation = random()[:10] - if r.hget("shorturl-%s" % abbreviation) is None: + if r.get("shorturl-%s" % abbreviation) is None: break else: # Mysteriously unable to get a unique abbreviated session ID!