mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 17:54:25 +02:00
Fix nginx integration tests on Python 3
This commit is contained in:
@@ -629,7 +629,8 @@ class NginxConfigurator(common.Plugin):
|
|||||||
proc = subprocess.Popen(
|
proc = subprocess.Popen(
|
||||||
[self.conf('ctl'), "-c", self.nginx_conf, "-V"],
|
[self.conf('ctl'), "-c", self.nginx_conf, "-V"],
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE)
|
stderr=subprocess.PIPE,
|
||||||
|
universal_newlines=True)
|
||||||
text = proc.communicate()[1] # nginx prints output to stderr
|
text = proc.communicate()[1] # nginx prints output to stderr
|
||||||
except (OSError, ValueError) as error:
|
except (OSError, ValueError) as error:
|
||||||
logger.debug(error, exc_info=True)
|
logger.debug(error, exc_info=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user