From 6e8ca7f1602d4e7a1e12205927d4b2e364cdf254 Mon Sep 17 00:00:00 2001 From: Sara Thon Date: Fri, 5 Jun 2026 11:43:12 +0200 Subject: [PATCH 1/2] Fix spelling --- cf_remote/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cf_remote/main.py b/cf_remote/main.py index d97f016..d994777 100644 --- a/cf_remote/main.py +++ b/cf_remote/main.py @@ -504,7 +504,7 @@ def validate_command(command, args): if command in ["sudo", "run"]: if len(args.remote_command) != 1: raise CFRExitError( - "cf-remote sude/run requires exactly 1 command (use quotes)" + "cf-remote sudo/run requires exactly 1 command (use quotes)" ) args.remote_command = args.remote_command[0] From 3e08f643fa3b8de26f4f479ed55b0e97dfbdaaee Mon Sep 17 00:00:00 2001 From: Sara Thon Date: Fri, 5 Jun 2026 11:45:39 +0200 Subject: [PATCH 2/2] CFE-4661: cf-remote hangs when specifying wrong names in --clients Ticket: CFE-4661 --- cf_remote/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cf_remote/main.py b/cf_remote/main.py index d994777..127e45b 100644 --- a/cf_remote/main.py +++ b/cf_remote/main.py @@ -1,6 +1,7 @@ import argparse import os import sys +import re from cf_remote import log from cf_remote import version @@ -627,8 +628,10 @@ def resolve_hosts(string, single=False, bootstrap_ips=False): hosts = get_cloud_hosts(name, bootstrap_ips) ret.extend(hosts) log.debug("found in cloud, adding '{}'".format(hosts)) - else: + elif name == "localhost" or re.search(r"[@:.]", name): ret.append(name) + else: + raise CFRUserError("'{}' does not exist.".format(name)) if single: if len(ret) != 1: