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:
committed by
Joshua Tauberer
parent
ca8f06d590
commit
4999ed7b1c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user