agent: Replace f-strings with explicit conversion

This commit is contained in:
Ilija Lazoroski 2021-06-18 12:14:01 +02:00 committed by Ilija Lazoroski
parent 5c5d96f79d
commit 36a9e02181
1 changed files with 6 additions and 6 deletions

View File

@ -27,24 +27,24 @@ def build_monkey_commandline_explicitly(
if parent is not None:
cmdline.append("-p")
cmdline.append(f"{parent}")
cmdline.append(str(parent))
if tunnel is not None:
cmdline.append("-t")
cmdline.append(f"{tunnel}")
cmdline.append(str(tunnel))
if server is not None:
cmdline.append("-s")
cmdline.append(f"{server}")
cmdline.append(str(server))
if depth is not None:
if int(depth) < 0:
depth = 0
cmdline.append("-d")
cmdline.append(f"{depth}")
cmdline.append(str(depth))
if location is not None:
cmdline.append("-l")
cmdline.append(f"{location}")
cmdline.append(str(location))
if vulnerable_port is not None:
cmdline.append("-vp")
cmdline.append(f"{vulnerable_port}")
cmdline.append(str(vulnerable_port))
return cmdline