diff --git a/plugins/connection/lxd.py b/plugins/connection/lxd.py index 1c728c2fc9..713698834b 100644 --- a/plugins/connection/lxd.py +++ b/plugins/connection/lxd.py @@ -123,7 +123,7 @@ class Connection(ConnectionBase): host=self._host(), ) exec_cmd.extend( - [self.get_option("lxd_become_method"), self.get_option("remote_user")] + [self.get_option("lxd_become_method"), self.get_option("remote_user"), "-c"] ) exec_cmd.extend([self.get_option("executable"), "-c", cmd])