Bug 1369321

Summary: The last line of output lost a '\n' from oc describe resource
Product: OKD Reporter: XiaochuanWang <xiaocwan>
Component: ocAssignee: Fabiano Franz <ffranz>
Status: CLOSED CURRENTRELEASE QA Contact: Xingxing Xia <xxia>
Severity: low Docs Contact:
Priority: low    
Version: 3.xCC: aos-bugs, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-19 13:52:59 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:

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