Skip to content

Commit

Permalink
fix: use -c flag with su
Browse files Browse the repository at this point in the history
  • Loading branch information
yeetypete committed Jan 31, 2025
1 parent 297f3c0 commit fe0add0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/connection/lxd.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _build_command(self, cmd) -> str:
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])
Expand Down

0 comments on commit fe0add0

Please sign in to comment.