From 4e577919e3eb1c5cd45e7287e751e06e15c6399b Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Mon, 15 Apr 2019 23:54:05 +0200 Subject: [PATCH] fix typo --- wo/cli/plugins/site.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wo/cli/plugins/site.py b/wo/cli/plugins/site.py index 9d1c145..1fc36ea 100644 --- a/wo/cli/plugins/site.py +++ b/wo/cli/plugins/site.py @@ -785,7 +785,7 @@ class WOSiteUpdateController(CementBaseController): action='store' or 'store_const', choices=('on', 'off', 'renew', 'subdomain', 'wildcard'), const='on', nargs='?')), - (['-hsts'], + (['--hsts'], dict(help="configure hsts for the site", action='store' or 'store_const', choices=('on', 'off'), @@ -1337,8 +1337,8 @@ class WOSiteUpdateController(CementBaseController): if data['hsts'] is True: if os.path.isfile(("{0}/conf/nginx/ssl.conf") .format(wo_site_webroot)): - if (not os.path.isfile("{0}/conf/nginx/hsts.conf" - .format(wo_site_webroot))): + if not os.path.isfile("{0}/conf/nginx/hsts.conf" + .format(wo_site_webroot)): setupHsts(self, wo_domain) else: Log.error(self, "HSTS is already configured for given "