Project

General

Profile

Actions

Bug #18285

closed

hammer hostgroup sc-params does not accept --hostgroup-title without specifying other parameters

Added by Joost Polley about 7 years ago. Updated over 4 years ago.

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

Description

Version of hammer: 0.9.0
Version of hammer_cli_foreman: 0.9.0

root@6b51ed3dc354:/usr/src/app/bin/foreman_toolbox# hammer hostgroup sc-params --hostgroup-title ls-dev
Error: At least one of options --hostgroup, --hostgroup-id is required

See: 'hammer hostgroup sc-params --help'

The command `hammer hostgroup sc-params --hostgroup-title ls-dev --hostgroup ls-dev` works.

Actions #1

Updated by Swapnil Abnave about 7 years ago

The command `hammer hostgroup sc-params --hostgroup-title ls-dev --hostgroup ls-dev` works.

Joost, you need not specify `--hostgroup-title`, as the only required options are `--hostgroup and/or --hostgroup-id`

The following command should work fine for you.

`hammer hostgroup sc-params --hostgroup ls-dev`

Let me know in case any further issue.

Actions #2

Updated by Joost Polley about 7 years ago

Swapnil Abnave wrote:

The command `hammer hostgroup sc-params --hostgroup-title ls-dev --hostgroup ls-dev` works.

Joost, you need not specify `--hostgroup-title`, as the only required options are `--hostgroup and/or --hostgroup-id`

The following command should work fine for you.

[...]

Let me know in case any further issue.

Hey Swapnil,

in my case, I could have ls-dev/hostgroup-name and ls-prod/hostgroup-name. I am using the --hostgroup-title because I want to make sure I am changing the correct hostgroup.

Actions #3

Updated by Oleh Fedorenko over 4 years ago

  • Status changed from New to Closed
  • Triaged changed from No to Yes

I'm not able to reproduce it.

hammer hostgroup sc-params
command accepts --hostgroup-title without any other option and shows the result.

Please, feel free to reopen if something is missing or doesn't work.

Actions

Also available in: Atom PDF