Skip to content

Commit

Permalink
Removes the self.become this way the condition is applied
Browse files Browse the repository at this point in the history
every time the user has no privileges

Signed-off-by: mcasquer <[email protected]>
  • Loading branch information
mcasquer committed Nov 7, 2024
1 parent f66d6a1 commit 73bf14b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmt/steps/provision/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ def setup(self) -> None:
Setup the guest after it has been started. It is called after :py:meth:`Guest.start`.
"""
from tmt.steps.execute.internal import effective_pidfile_root
sudo = 'sudo' if not self.facts.is_superuser and self.become else ''
sudo = 'sudo' if not self.facts.is_superuser else ''
pid_directory = effective_pidfile_root()
self.execute(ShellScript(
f"""
Expand Down

0 comments on commit 73bf14b

Please sign in to comment.