Project

Profile

Help

Issue #335

closed

turning wrap_to_teminal to true results in traceback

Added by dgao@redhat.com over 9 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Master
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Changing wrap_to_terminal to true and using ssh client to execute pulp cli command results in a traceback.

dgao@zhongyong:~ $ ssh "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!
'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 +

Also available in: Atom PDF