Skip to content

Commit e1a7325

Browse files
committed
Fixed cf-agent --bootstrap syntax error
Signed-off-by: Victor Moene <victor.moene@northern.tech>
1 parent 32ab1ce commit e1a7325

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

cf_remote/commands.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,9 +1071,12 @@ def agent(hosts, bootstrap=None):
10711071
if not data["agent"]:
10721072
raise CFRExitError("CFEngine not installed on {}".format(host))
10731073

1074-
command = "{}".format(data["agent"])
1074+
args = [data["agent"]]
10751075
if bootstrap:
1076-
command += "--bootstrap {}".format(bootstrap[0])
1076+
args.append("--bootstrap")
1077+
args.append(bootstrap[0])
1078+
1079+
command = " ".join(args)
10771080

10781081
output = run_command(host, command, sudo=True)
10791082
if output:

0 commit comments

Comments
 (0)