Project

General

Profile

Actions

Bug #28224

closed

hammer host errata list - Unrecognised option '--environment'

Added by Partha Aji over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

There are a couple of issues with 'hammer host errata list' call

1) hammer host errata list call does not accept the --environment option and instead expects the user to provide --lifecycle-environment

$ hammer  host errata list --host-id=1 --environment=Library
Error: Unrecognised option '--environment'.

See: 'hammer host errata list --help'.
$ hammer  host errata list --help|grep -i life
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID ID of the environment

meanwhile the host_errata controller accept environment-id instead of lifecycle-environment-id

2)
There is not --organization option while there is a lifecycle-environment option.
This means the lifecycle-environment option is basically useless since we do not have organization.

Actions

Also available in: Atom PDF