diff --git a/cloudinit/config/cc_snap.py b/cloudinit/config/cc_snap.py index 93c6fe7a78a6..bfeeecf02248 100644 --- a/cloudinit/config/cc_snap.py +++ b/cloudinit/config/cc_snap.py @@ -173,7 +173,7 @@ def run_commands(commands): for command in fixed_snap_commands: shell = isinstance(command, str) try: - subp.subp([command], shell=shell) + subp.subp(command, shell=shell) except subp.ProcessExecutionError as e: cmd_failures.append(str(e)) if cmd_failures: