Project

General

Profile

Actions

Bug #4573

closed

Better error message for unknown template kind

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman commands (obsolete)
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
Actions #1

Updated by Tomáš Strachota over 7 years ago

  • Difficulty set to trivial
Actions #2

Updated by Rahul Bajaj over 7 years ago

  • Assignee set to Rahul Bajaj
Actions #3

Updated by Rahul Bajaj about 7 years ago

  • Target version set to 220
Actions #4

Updated by The Foreman Bot about 7 years ago

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

Updated by Rahul Bajaj about 7 years ago

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

Updated by Martin Bacovsky about 7 years ago

  • Translation missing: en.field_release set to 290
Actions #7

Updated by The Foreman Bot about 7 years ago

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

Also available in: Atom PDF