From 04361eecf5c9564340867eec05cdbda1d9e8a3d3 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Wed, 30 Oct 2019 06:09:35 +0100 Subject: [PATCH] Fix has_section --- wo/cli/plugins/info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wo/cli/plugins/info.py b/wo/cli/plugins/info.py index 1061ffd..488e0db 100644 --- a/wo/cli/plugins/info.py +++ b/wo/cli/plugins/info.py @@ -81,7 +81,7 @@ class WOInfoController(CementBaseController): config.read('/etc/{0}/fpm/pool.d/www.conf'.format("php/7.2")) if config.has_section('www'): wconfig = config['www'] - elif config.has_section['www-php72']: + elif config.has_section('www-php72'): wconfig = config['www-php72'] www_listen = wconfig['listen'] www_ping_path = wconfig['ping.path'] @@ -163,7 +163,7 @@ class WOInfoController(CementBaseController): config.read('/etc/php/7.3/fpm/pool.d/www.conf') if config.has_section('www'): wconfig = config['www'] - elif config.has_section['www-php73']: + elif config.has_section('www-php73'): wconfig = config['www-php73'] www_listen = wconfig['listen'] www_ping_path = wconfig['ping.path']