Skip to content

Commit

Permalink
Change verbosity code, use self._display.verbosity instead of self._p…
Browse files Browse the repository at this point in the history
…lay_context.verbosity (#54)
  • Loading branch information
andreasscherbaum authored May 19, 2023
1 parent d40d1e9 commit 87dd3cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lxc_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,11 @@ def _build_command(self, binary, subsystem, *other_args):
self._add_args(b_command, b_args, "disable batch mode for sshpass")
b_command += [b"-b", b"-"]

if self._play_context.verbosity > 3:
if self._display.verbosity == 1:
b_command.append(b"-v")
elif self._display.verbosity == 2:
b_command.append(b"-vv")
elif self._display.verbosity >= 3:
b_command.append(b"-vvv")

# Next, we add ssh_args
Expand Down

0 comments on commit 87dd3cd

Please sign in to comment.