1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

Fix nginx integration tests on Python 3

This commit is contained in:
Yen Chi Hsuan
2017-03-16 21:57:50 +08:00
parent 29d25f0915
commit 031a8dd837

View File

@@ -629,7 +629,8 @@ class NginxConfigurator(common.Plugin):
proc = subprocess.Popen(
[self.conf('ctl'), "-c", self.nginx_conf, "-V"],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stderr=subprocess.PIPE,
universal_newlines=True)
text = proc.communicate()[1] # nginx prints output to stderr
except (OSError, ValueError) as error:
logger.debug(error, exc_info=True)