small fixes for q7s-cp script
EIVE/eive-obsw/pipeline/pr-main This commit looks good Details

This commit is contained in:
Robin Müller 2024-04-30 13:50:22 +02:00
parent e3dc1c9a74
commit 39f0db1db6
1 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,9 @@ import os
import sys
DEFAULT_PORT = 1539
def main():
args = handle_args()
cmd = build_cmd(args)
@ -20,7 +23,7 @@ def prompt_ssh_key_removal():
do_remove_key = input(
"Do you want to remove problematic keys on localhost ([Y]/n)?: "
)
if not do_remove_key.lower() in ["y", "yes", "1", ""]:
if do_remove_key.lower() not in ["y", "yes", "1", ""]:
sys.exit(1)
port = 0
while True:
@ -54,7 +57,7 @@ def handle_args():
"If files are copied back to host, will be current directory by default",
default="",
)
parser.add_argument("-P", "--port", help="Target port", default=1535)
parser.add_argument("-P", "--port", help="Target port", default=DEFAULT_PORT)
parser.add_argument(
"-i",
"--invert",