diff --git a/lib/cdist/exec/remote.py b/lib/cdist/exec/remote.py index 7cd9052d..124c1b4f 100644 --- a/lib/cdist/exec/remote.py +++ b/lib/cdist/exec/remote.py @@ -104,7 +104,7 @@ class Remote(object): # variable declarations if env: remote_env = ["%s=%s" % item for item in env.items()] - cmd.append(remote_env) + cmd.extend(remote_env) cmd.extend(command)