The output path used with the `--output` option must be quoted since it
can contain spaces.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I7bf557f64d3fb72a10230ad9da9d59872672e11c
name = name if name else lttngctl.Session._generate_name()
if isinstance(output, lttngctl.LocalSessionOutputLocation):
- output_option = "--output {output_path}".format(output_path=output.path)
+ output_option = "--output '{output_path}'".format(output_path=output.path)
elif output is None:
output_option = "--no-output"
else: