mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Don't sudo
when the ssh username is root
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
2aa4042c77
commit
a5523069bf
1 changed files with 1 additions and 1 deletions
|
@ -967,7 +967,7 @@ class VM:
|
|||
env["OUTPUT_COLUMNS"] = str(self.ctx.console.width)
|
||||
env["GITHUB_ACTIONS_PIPELINE"] = "1"
|
||||
self.write_and_upload_dot_env(env)
|
||||
if self.is_windows is False:
|
||||
if self.is_windows is False and self.config.ssh_username != "root":
|
||||
sudo = True
|
||||
else:
|
||||
sudo = False
|
||||
|
|
Loading…
Add table
Reference in a new issue