Feature #19230
open
hammer-cli: hammer os set-default-template improvement
Added by Petr Ruzicka over 7 years ago.
Updated over 6 years ago.
Category:
Provisioning templates
|
Description
Hello.
When I look at the command description for the "hammer os set-default-template" I can see it only accepts "--config-template-id" and "--id".
It would be nice to see if it also accept the "names" and not just "ids" like it's in other parts of hammer.
For example:
hammer os set-default-template --name "My_CentOS" --config-template "My_Kickstart_default"
Thank you
PetrR
- Project changed from Foreman to Hammer CLI
- Category changed from API to Provisioning templates
- Assignee set to Rahul Bajaj
- Target version set to 220
- Has duplicate Bug #19997: Commands for setting default templates are missing name options added
Please note that there should be two more options for OS's title and template's name, plus config templates should be renamed to provisioning templates:
Current state:
hammer os set-default-template -h
Usage:
hammer os set-default-template [OPTIONS]
Options:
--config-template-id TPL ID config template id to be set
--id OS ID operatingsystem id
-h, --help print help
Expected result:
hammer os set-default-template -h
Usage:
hammer os set-default-template [OPTIONS]
Options:
--provisioning-template-id ID ...
--provisioning-template NAME ...
--id ID ...
--title TITLE ...
-h, --help print help
- Target version changed from 220 to 230
Also available in: Atom
PDF