Bug 1370104
Summary: | oc get/describe/new-app not display/indent well when template description contains newlines | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Xingxing Xia <xxia> |
Component: | oc | Assignee: | Juan Vallejo <jvallejo> |
Status: | CLOSED ERRATA | QA Contact: | Xingxing Xia <xxia> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 3.3.0 | CC: | aos-bugs, jokerman, jvallejo, mmccomas, tdawson, xiaocwan |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: Multi-line output for a template description did not display all lines with correct indentation under `oc new-app`
Consequence: Output for template descriptions was hard to read
Fix: Added a new helper function `formatString` that indents all lines for a multi-line template description.
Result: Template description for `oc new-app <my_template>` is easier to read.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-04-12 19:06:32 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: |
Description
Xingxing Xia
2016-08-25 10:36:12 UTC
Tested on OCP oc v3.4.0.26: Step 2 'oc get template jenkins-ephemeral' is fixed and merged in PR: https://github.com/openshift/ose/pull/462/commits/8df9d32cacc37c7e52c88ab3cf85f07f56a32cdc Step 3 and Step 4 is still reproduced, waiting for fix. Related PR: https://github.com/openshift/origin/pull/12724 Verified in v3.5.0.26. Based on comment 0 steps, now step 3 shows: $ oc describe template jenkins-ephemeral ... Description: Jenkins service, without persistent storage. WARNING: Any data stored will be lost upon pod destruction. Only use this template for testing ... Step 4 shows: $ oc new-app jenkins-ephemeral ... jenkins-ephemeral --------- Jenkins service, without persistent storage. WARNING: Any data stored will be lost upon pod destruction. Only use this template for testing ... So oc get/describe/new-app now display newlines well when template description contains newlines. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:0884 |