Project

General

Profile

Actions

Bug #6318

closed

Hammer CLI output in CSV returns Operating System and Host Group as empty strings

Added by Derek Wright almost 10 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Hammer core
Target version:
-
Difficulty:
Triaged:
No
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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

Actions #1

Updated by Tomáš Strachota almost 10 years ago

CSV output adapter seems to ignore reference field types.

hammer --version
hammer (0.1.1)
 * hammer_cli_foreman (0.1.1)
Actions #2

Updated by Tomáš Strachota over 5 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

Also available in: Atom PDF