Project

General

Profile

Bug #4573

Better error message for unknown template kind

Added by Tomáš Strachota over 6 years ago. Updated over 2 years ago.

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

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 almost 3 years ago

Fixes #4573 -Better error message for unknown template kind

Revision b818865e (diff)
Added by Tomas Strachota almost 3 years ago

Refs #4573 - "unknown template kind" message translated

History

#1 Updated by Tomáš Strachota about 3 years ago

  • Difficulty set to trivial

#2 Updated by Rahul Bajaj about 3 years ago

  • Assignee set to Rahul Bajaj

#3 Updated by Rahul Bajaj about 3 years ago

  • Target version set to 220

#4 Updated by The Foreman Bot about 3 years 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 almost 3 years ago

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

#6 Updated by Martin Bacovsky almost 3 years ago

  • Legacy Backlogs Release (now unused) set to 290

#7 Updated by The Foreman Bot almost 3 years ago

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

Also available in: Atom PDF