Project

General

Profile

Bug #19999

Updated by Tomáš Strachota about 8 years ago

hammer os add-config-template allows to add templates only one by one. Allowing to set more templates at once would make it easier to use the command. 

 *Current usage:* 
 <pre> 
 hammer os add-config-template -h 
 Usage: 
     hammer os add-config-template [OPTIONS] 

 Options: 
  --config-template CONFIG_TEMPLATE_NAME    Name to search by 
  --config-template-id CONFIG_TEMPLATE_ID   
  --id ID                                   
  --title TITLE                             Operating system title 
  -h, --help                                print help 
 </pre> 


 *Expected usage:* 
 <pre> 
 hammer os add-config-template -h 
 Usage: 
     hammer os add-config-template [OPTIONS] 

 Options: 
  --config-templates      NAMES    Names of templates 
  --config-template-ids IDS      IDs of templates 
  --id ID                                   
  --title TITLE                  Operating system title 
  -h, --help                     print help 
 </pre> 

 At the same time we need to keep backward compatibility and accept the old options with a deprecation warning. 

 One extra feature could be a search field, that would associate all matching templates: 
 <pre> 
 hammer os add-config-template --title 'RedHat 7' --config-template-search="Kickstart*" 
 </pre>

Back