1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-04-15 23:47:24 +02:00

Fixed Q003 (avoidable-escaped-quote): Change outer quotes to avoid escaping inner quotes

This commit is contained in:
Teal Dulcet
2023-12-22 07:21:37 -08:00
committed by Joshua Tauberer
parent ca8f06d590
commit 4999ed7b1c
4 changed files with 9 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ import sys, os, time
# parse command line
if len(sys.argv) != 4:
print("Usage: tests/fail2ban.py \"ssh user@hostname\" hostname owncloud_user")
print('Usage: tests/fail2ban.py "ssh user@hostname" hostname owncloud_user')
sys.exit(1)
ssh_command, hostname, owncloud_user = sys.argv[1:4]
@@ -153,7 +153,7 @@ def restart_fail2ban_service(final=False):
if not final:
# Stop recidive jails during testing.
command += " && sudo fail2ban-client stop recidive"
os.system("{} \"{}\"".format(ssh_command, command))
os.system('{} "{}"'.format(ssh_command, command))
def testfunc_runner(i, testfunc, *args):
print(i+1, end=" ", flush=True)