Bug 1300251
Summary: | clientCaps.py : IndexError: string index out of range | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] Spacewalk | Reporter: | Lukáš Hellebrandt <lhellebr> | ||||
Component: | Clients | Assignee: | Tomáš Kašpárek <tkasparek> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 2.4 | CC: | ggainey, pstudeni | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-06-16 08:00:16 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1484117 | ||||||
Attachments: |
|
The traceback is caused parsing empty line in configure file /etc/sysconfig/rhn/clientCaps.d/configfiles I created pull request https://github.com/spacewalkproject/spacewalk/pull/343/ spacewalk.github: deb2e81a2c25cc3d7d6a49985f3962b5bb68288d Spacewalk 2.5 was released. This BZ closed some time during 2.5, 2.6 or 2.7. Adding to 2.7 tracking bug. |
Created attachment 1116582 [details] Traceback Description of problem: When running/importing /usr/share/rhn/up2date_client/clientCaps.py , traceback occurs (attached). Version-Release number of selected component (if applicable): rhn-client-tools-2.5.9-1 How reproducible: With a file with empty line in /etc/sysconfig/rhn/clientCaps.d/ Steps to Reproduce: 1. echo -e 'a\n\nb\n' > /etc/sysconfig/rhn/clientCaps.d/filename 2. from up2date_client import clientCaps Actual results: Traceback Expected results: No traceback