Alex Monk has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/311695

Change subject: Follow-up I55032bf7: urlopen context argument was added in 
Python 2.7.9 too
......................................................................

Follow-up I55032bf7: urlopen context argument was added in Python 2.7.9 too

Change-Id: Id0cfcc6907c37c0960b5a614a041f7f974b7fb7b
---
M modules/letsencrypt/files/acme_tiny.py
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/95/311695/1

diff --git a/modules/letsencrypt/files/acme_tiny.py 
b/modules/letsencrypt/files/acme_tiny.py
index 96441bb..626afa1 100644
--- a/modules/letsencrypt/files/acme_tiny.py
+++ b/modules/letsencrypt/files/acme_tiny.py
@@ -147,7 +147,10 @@
             ctx = None
 
         try:
-            resp = urlopen(wellknown_url, context=ctx)
+            if ctx:
+                resp = urlopen(wellknown_url, context=ctx)
+            else:
+                resp = urlopen(wellknown_url)
             resp_data = resp.read().decode('utf8').strip()
             assert resp_data == keyauthorization
         except (IOError, AssertionError):

-- 
To view, visit https://gerrit.wikimedia.org/r/311695
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id0cfcc6907c37c0960b5a614a041f7f974b7fb7b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alex Monk <a...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to