mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-20 20:00:23 -07:00
Python3 chokes on casting int to bytes (#24952)
But if we tell the formatter that the var is a number, it works
This commit is contained in:
parent
daada2000c
commit
9737c6b90d
1 changed files with 1 additions and 1 deletions
|
@ -45,6 +45,6 @@ class TerminalModule(TerminalBase):
|
|||
try:
|
||||
for cmd in (b'set terminal length 0', b'set terminal width 512'):
|
||||
self._exec_cli_command(cmd)
|
||||
self._exec_cli_command(b'set terminal length %s' % self.terminal_length)
|
||||
self._exec_cli_command(b'set terminal length %d' % self.terminal_length)
|
||||
except AnsibleConnectionFailure:
|
||||
raise AnsibleConnectionFailure('unable to set terminal parameters')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue