Project

General

Profile

Actions

Feature #19230

open

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

Added by Petr Ruzicka almost 7 years ago. Updated over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Provisioning templates
Target version:
-
Difficulty:
easy
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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 1 (0 open1 closed)

Has duplicate Hammer CLI - Bug #19997: Commands for setting default templates are missing name optionsDuplicate06/13/2017Actions
Actions #1

Updated by Dominic Cleal almost 7 years ago

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

Updated by Rahul Bajaj over 6 years ago

  • Assignee set to Rahul Bajaj
Actions #3

Updated by Rahul Bajaj over 6 years ago

  • Target version set to 220
Actions #4

Updated by Tomáš Strachota over 6 years ago

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

Updated by Tomáš Strachota over 6 years 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

Actions #6

Updated by Rahul Bajaj over 6 years ago

  • Target version changed from 220 to 230
Actions

Also available in: Atom PDF