From e1a7325e577b088a8c88c1dfb8682054911bfd92 Mon Sep 17 00:00:00 2001 From: Victor Moene Date: Wed, 10 Jun 2026 13:58:24 +0200 Subject: [PATCH] Fixed cf-agent --bootstrap syntax error Signed-off-by: Victor Moene --- cf_remote/commands.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cf_remote/commands.py b/cf_remote/commands.py index 60de028..53ecbc7 100644 --- a/cf_remote/commands.py +++ b/cf_remote/commands.py @@ -1071,9 +1071,12 @@ def agent(hosts, bootstrap=None): if not data["agent"]: raise CFRExitError("CFEngine not installed on {}".format(host)) - command = "{}".format(data["agent"]) + args = [data["agent"]] if bootstrap: - command += "--bootstrap {}".format(bootstrap[0]) + args.append("--bootstrap") + args.append(bootstrap[0]) + + command = " ".join(args) output = run_command(host, command, sudo=True) if output: