Project

General

Profile

Actions

Bug #4547

closed

CLI: Foreman should split the name, major and minor versions for an OS in the output

Added by Og Maciel over 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Other commands
Target version:
-
Difficulty:
Triaged:
No
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Cannot search for an OS by name using the CLI. This is because even though hammer displays the name for an OS as the concat of name + major +minor, list --search expects only name as an argument.

[root@qeblade35 ~]# hammer os list
------------------------------------------------------------------
ID | NAME                                  | RELEASE NAME | FAMILY
------------------------------------------------------------------
6  | 2mp6jb 9.5                            |              |
13 | 3424745990 9.8                        |              |
19 | 5622196256 7.5                        |              |
24 | 6757407487 9.1                        |              |
14 | 6SAtVmf522 3.6                        |              |
15 | <sub>CfZFFCsGWQ</sub> 4.6             |              |
16 | GyACSEVlUr 4.9                        |              |
25 | ONy1SAC7zL 7.6                        |              |
26 | PPBFAAaZKU 4.0                        |              |
1  | RedHat 6.5                            |              | Redhat
20 | VLykOkmCvI 4.6                        |              |
23 | aZTLXI8uyF 0.2                        |              |
7  | awkv4l 9.3                            |              |
4  | e800bdk6 4.10                         |              |
9  | evf7un1y 5.10                         |              |
10 | i9wscn 2.10                           |              |
31 | mrk8sa1 9.10                          |              |
2  | t55wifg 7.0                           |              |
30 | tvdxyujs 4.2                          |              |
8  | vcjrs5f 0.8                           |              |
------------------------------------------------------------------
[root@qeblade35 ~]# hammer os list --search name='mrk8sa1 9.10'
No data.
[root@qeblade35 ~]# hammer os list --search name='mrk8sa1'
-----------------------------------------------------
ID | NAME                     | RELEASE NAME | FAMILY
-----------------------------------------------------
31 | mrk8sa1 9.10             |              |
-----------------------------------------------------
Actions

Also available in: Atom PDF