Project

General

Profile

Actions

Bug #4336

closed

Hammer facts by --name doesn't work

Added by Daniel Lobato Garcia about 10 years ago. Updated over 8 years ago.

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

Description

hammer host facts --id myhost

works well, returns the host facts.

hammer host facts --name myhost

doesn't find any fact or claims that --name is empty.

Actions #1

Updated by Marc-Christian Petersen almost 10 years ago

since hammer CLI of Foreman 1.4 I get this:

hammer host facts --name foobar
Error: At least one of options --id, --name is required
See: 'hammer host facts --help'

when I use --id, I get the same message as above.

when using hammer 0.1.0-1 from Foreman 1.5rc1 I get:

hammer host facts --id 1
No data.

--name does not work there too.

The host has facts of course :)

Actions #2

Updated by Kamjar Gerami over 8 years ago

Works fine for both methods using :

foreman-1.9.2-1.el7.noarch
rubygem-hammer_cli_foreman-0.3.0-1.el7.noarch

Actions #3

Updated by Dominic Cleal over 8 years ago

  • Status changed from New to Resolved

Confirmed, thanks Kamjar.

Actions

Also available in: Atom PDF