Project

General

Profile

Bug #4573

Better error message for unknown template kind

Added by Tomáš Strachota almost 5 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman commands (obsolete)
Team Backlog:
Fixed in Releases:
Found in Releases:

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 (diff)
Added by Rahul Bajaj about 1 year ago

Fixes #4573 -Better error message for unknown template kind

Revision b818865e (diff)
Added by Tomas Strachota about 1 year ago

Refs #4573 - "unknown template kind" message translated

History

#1 Updated by Tomáš Strachota over 1 year ago

  • Difficulty set to trivial

#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 The Foreman Bot about 1 year 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 about 1 year ago

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

#6 Updated by Martin Bacovsky about 1 year ago

  • Legacy Backlogs Release (now unused) set to 290

#7 Updated by The Foreman Bot about 1 year ago

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

Also available in: Atom PDF