diff --git a/wo/core/fileutils.py b/wo/core/fileutils.py index 92d45bf..d6139c4 100644 --- a/wo/core/fileutils.py +++ b/wo/core/fileutils.py @@ -370,7 +370,7 @@ class WOFileUtils(): def enabledisable(self, path, enable=True): """Switch conf from .conf.disabled to .conf or vice-versa""" - if enable: + if enable is True: Log.debug(self, "Check if disabled file exist") if os.path.exists('{0}.disabled'.format(path)): Log.debug(self, "Moving .disabled file") diff --git a/wo/core/sslutils.py b/wo/core/sslutils.py index a347466..09b05ce 100644 --- a/wo/core/sslutils.py +++ b/wo/core/sslutils.py @@ -136,7 +136,7 @@ class SSL: def setuphsts(self, wo_domain_name, enable=True): """Enable or disable htsts for a site""" - if enable: + if enable is True: if WOFileUtils.enabledisable( self, '/var/www/{0}/conf/nginx/hsts.conf' ):