Bug #22665
closedDuplicate hammer options to view available compute-resource image
Description
Description of problem: In hammer CLI, compute-resource image available needs to pass two parameters to see images available for addition.
hammer> compute-resource image available -h
Usage:
compute-resource image available [OPTIONS]
Options:
--compute-resource NAME
--compute-resource-id ID
--id ID
--name NAME Compute resource name
-h, --help print help
Version-Release number of selected component (if applicable): Satellite 6.3 snap 25
How reproducible: always
Steps to Reproduce:
1. hammer> compute-resource image available --id 67
Error: At least one of options --compute-resource-id, --compute-resource is required
See: ' compute-resource image available --help'
2. hammer> compute-resource image available --id 67
Error: At least one of options --compute-resource-id, --compute-resource is required
See: ' compute-resource image available --help'
3.hammer> compute-resource image available --id 67
Error: At least one of options --compute-resource-id, --compute-resource is required
See: ' compute-resource image available --help'
4. hammer> compute-resource image available --name 'rhev_compute'
Error: At least one of options --compute-resource-id, --compute-resource is required
See: ' compute-resource image available --help'
Actual results:
Need to pass two parameters to see available images for addition.
Expected results: Remove duplicate options and passing only id or name should work.
Additional info: