Bug 1369321 - The last line of output lost a '\n' from oc describe resource
Summary: The last line of output lost a '\n' from oc describe resource
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 3.x
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Fabiano Franz
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-23 06:53 UTC by XiaochuanWang
Modified: 2016-09-19 13:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-19 13:52:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description XiaochuanWang 2016-08-23 06:53:50 UTC
Description of problem:
When oc describe resource or resources, the last line lost a '\n' which makes the command prompt line next to it. E.g "No events.[root@ip-xxx ~]# "

Version-Release number of selected component (if applicable):
oc v3.3.0.24

How reproducible:
Always

Steps to Reproduce:
1. Make sure there are resources, Eg. svc/docker-registry svc/router in default namespace
2. Check the last line by `svc/docker-registry svc/router`

Actual results:
The command prompt line is next to the last line. "No events.[root@ipxxx ~]# "
1)
#  oc describe  svc/docker-registry 
Name:            docker-registry
...
Session Affinity:    ClientIP
No events.[root@ip-xxx ~]# 

2)
#  oc describe  svc/docker-registry svc/router
Name:            docker-registry
...
Session Affinity:    ClientIP
No events.

Name:            router
...
Session Affinity:    None
No events.[root@ip-xxx ~]#

Expected results:
There should be at least one '\n' after the last line

Additional info:

Comment 1 Fabiano Franz 2016-08-26 17:11:53 UTC
Fixed in https://github.com/openshift/origin/pull/10653


Note You need to log in before you can comment on or make changes to this bug.