Bug 1832714 - oc adm release help shows %[1]s instead the command in the examples section
Summary: oc adm release help shows %[1]s instead the command in the examples section
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.5.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-07 07:25 UTC by Eduardo Minguez
Modified: 2020-07-13 17:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-13 17:35:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:35:57 UTC

Description Eduardo Minguez 2020-05-07 07:25:06 UTC
Description of problem:

```
$ oc adm release extract -h
...
Usage:
  oc adm release extract [flags]

Examples:
  # Use git to check out the source code for the current cluster release to DIR
  %[1]s --git=DIR
```

```
$ oc adm release info -h
...
Usage:
  oc adm release info IMAGE [--changes-from=IMAGE] [--verify|--commits|--pullspecs] [flags]

Examples:
  # Show information about the cluster's current release
  %[1]s
  
  # Show the source code that comprises a release
  %[1]s 4.2.2 --commit-urls
  
  # Show the source code difference between two releases
  %[1]s 4.2.0 4.2.2 --commits
  
  # Show where the images referenced by the release are located
  %[1]s quay.io/openshift-release-dev/ocp-release:4.2.2 --pullspecs
```

Version-Release number of selected component (if applicable):
```
$ oc version --client
Client Version: 4.4.3
```

How reproducible:
Run the previous commands

Steps to Reproduce:
1. Download the oc command from https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/4.4.3/
2. Run the previous commands
3.

Actual results:
Wrong expansion I guess

Expected results:
Proper expansion

Additional info:

Comment 1 Maciej Szulik 2020-05-11 10:17:14 UTC
This is fixed in the latest version of oc.

Comment 4 zhou ying 2020-05-12 01:43:52 UTC
[root@dhcp-140-138 ~]# oc adm release extract -h
......

Usage:
  oc adm release extract [flags]

Examples:
  # Use git to check out the source code for the current cluster release to DIR
  oc adm release extract --git=DIR



[root@dhcp-140-138 ~]# oc version -o yaml 
clientVersion:
  buildDate: "2020-05-07T22:03:52Z"
  compiler: gc
  gitCommit: f415627b3a8df305c4dd0ada0b4bc1271846a777
  gitTreeState: clean
  gitVersion: 4.5.0-202005072157-f415627
  goVersion: go1.13.4
  major: ""
  minor: ""
  platform: linux/amd64

Comment 5 errata-xmlrpc 2020-07-13 17:35:44 UTC
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-2020:2409


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