From d1844695fd719cbbf758b15bdbcc2892b8b6b4b8 Mon Sep 17 00:00:00 2001 From: Robertas Zamblauskas Date: Thu, 18 Aug 2016 11:25:01 +0300 Subject: [PATCH] Decode TXT record byte literal, otherwise comparing to token string does not work. --- hook.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hook.py b/hook.py index 6414eb8..5591548 100755 --- a/hook.py +++ b/hook.py @@ -76,6 +76,7 @@ def _has_dns_propagated(name, token): return False for txt_record in txt_records: + txt_record=txt_record.decode() if txt_record == token: return True