Bug #4573

Better error message for unknown template kind

Added by Tomáš Strachota about 4 years ago. Updated 7 months ago.

Status:Closed
Priority:Normal
Assigned To:Rahul Bajaj
Category:Foreman commands (obsolete)
Target version:Foreman - Team Anurag Iteration 21
Difficulty:trivial Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/hammer-cli-foreman/pull/338, https://github.com/theforeman/hammer-cli-foreman/pull/337
Story points-
Velocity based estimate-
Release hammer-cli-foreman-0.12.0Release relationshipAuto

Description

When creating a template with unknown template kind (other than what's listed in 'hammer template kinds') hammer responds with "Template kind can't be blank"
The error should be "unknown template kind" or something similar. Template update is most likely affected as well.

hammer template create --name tpl89 --file ./template.txt --type unknown
Could not create the config template:
  Template kind can't be blank

Associated revisions

Revision 5e5a08b6
Added by Rahul Bajaj 7 months ago

Fixes #4573 -Better error message for unknown template kind

Revision b818865e
Added by Tomas Strachota 7 months ago

Refs #4573 - "unknown template kind" message translated

History

#1 Updated by Tomáš Strachota 10 months ago

  • Difficulty set to trivial

#2 Updated by Rahul Bajaj 10 months ago

  • Assigned To set to Rahul Bajaj

#3 Updated by Rahul Bajaj 8 months ago

  • Target version set to Team Anurag Iteration 21

#4 Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/337 added

#5 Updated by Rahul Bajaj 7 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#6 Updated by Martin Bacovsky 7 months ago

  • Release set to hammer-cli-foreman-0.12.0

#7 Updated by The Foreman Bot 7 months ago

  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/338 added

Also available in: Atom PDF