Project

General

Profile

Feature #19230

hammer-cli: hammer os set-default-template improvement

Added by Petr Ruzicka over 1 year ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Provisioning templates
Target version:
-
Difficulty:
easy
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

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


Related issues

Has duplicate Hammer CLI - Bug #19997: Commands for setting default templates are missing name optionsDuplicate2017-06-13

History

#1 Updated by Dominic Cleal over 1 year ago

  • Project changed from Foreman to Hammer CLI
  • Category changed from API to Provisioning templates

#2 Updated by Rahul Bajaj over 1 year ago

  • Assignee set to Rahul Bajaj

#3 Updated by Rahul Bajaj about 1 year ago

  • Target version set to 220

#4 Updated by Tomáš Strachota about 1 year ago

  • Has duplicate Bug #19997: Commands for setting default templates are missing name options added

#5 Updated by Tomáš Strachota about 1 year ago

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

#6 Updated by Rahul Bajaj about 1 year ago

  • Target version changed from 220 to 230

Also available in: Atom PDF