Actions
Bug #6318
closedHammer CLI output in CSV returns Operating System and Host Group as empty strings
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Hammer core
Target version:
-
Description
Foreman 1.5.1, using latest hammer cli
/usr/bin/hammer --username admin --password blah --output csv host list --search hostname
Id,Name,Operating System,Host Group,IP,MAC
203,hostname.example.com,"","",1.2.3.4,00:00:00:00:00:00
Updated by Tomáš Strachota over 10 years ago
CSV output adapter seems to ignore reference field types.
hammer --version hammer (0.1.1) * hammer_cli_foreman (0.1.1)
Updated by Tomáš Strachota over 6 years ago
- Status changed from New to Resolved
This has been fixed in one of the past releases. Listing hosts in csv works fine in hammer-cli 0.14 and hammer-cli-foreman 0.14:
hammer --output csv host list Id,Name,Operating System,Host Group,IP,MAC,Global Status,Content View,Lifecycle Environment 3,clint-unrue.tstracho-laptop,CentOS 7,Provisioning,192.168.122.53,00:11:22:33:44:57,Error,, 4,dylan-oslund.tstracho-laptop,CentOS 7,Provisioning,192.168.122.54,00:11:22:33:44:58,Error,,
I'm closing the issue as resolved.
Actions