Issue #335
closedturning wrap_to_teminal to true results in traceback
Description
Changing wrap_to_terminal to true and using ssh client to execute pulp cli command results in a traceback.
dgao@zhongyong:~ $ ssh root@pulp-nightly.usersys.redhat.com "pulp-v2-admin -u admin -p admin repo create --id=smoketest_repo --display_name=smoketest_repo --feed=http://repos.fedorapeople.org/repos/pulp/pulp/dev/testing/fedora-15/x86_64/"
reverse mapping checking getaddrinfo for unused [10.16.120.186] failed - POSSIBLE BREAK-IN ATTEMPT!
root@pulp-nightly.usersys.redhat.com's password:
Traceback (most recent call last):
File "/usr/bin/pulp-v2-admin", line 27, in <module>
sys.exit(pulp.gc_client.launcher.main(config_file, override_config_file))
File "/usr/lib/python2.7/site-packages/pulp/gc_client/launcher.py", line 178, in main
prompt = _create_prompt(config)
File "/usr/lib/python2.7/site-packages/pulp/gc_client/launcher.py", line 135, in _create_prompt
prompt = PulpPrompt(enable_color=enable_color, wrap_width=wrap)
File "/usr/lib/python2.7/site-packages/pulp/gc_client/framework/core.py", line 79, in init
wrap_width=wrap_width, record_tags=record_tags)
File "/usr/lib/python2.7/site-packages/okaara/prompt.py", line 120, in init
self.write(self.normal_color, new_line=False)
File "/usr/lib/python2.7/site-packages/okaara/prompt.py", line 162, in write
content = self.wrap(content)
File "/usr/lib/python2.7/site-packages/okaara/prompt.py", line 242, in wrap
wrap_width = self.terminal_size()[0]
File "/usr/lib/python2.7/site-packages/okaara/prompt.py", line 355, in terminal_size
ioctl = fcntl.ioctl(0, termios.TIOCGWINSZ, struct.pack('HHHH', 0, 0, 0, 0))
IOError: [Errno 22] Invalid argument
+ This bug was cloned from Bugzilla Bug #808154 +