Project

General

Profile

Actions

Bug #20145

closed

Updating a snippet requires template kind

Added by Tomáš Strachota almost 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Provisioning templates
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

When updating a snippet and --type parameter is missing the command returns error message saying "Template kind can't be blank".
--type shouldn't be required for updates.

> hammer template create --name tst --type snippet --file /root/hammer/hammer-cli-foreman/tst.erb                                                                                                
Provisioning template created
> hammer template update --name tst --locked true
Could not update the provisioning template:
  This template is locked. Please clone it to a new template to customize.
  Template kind can't be blank
Actions

Also available in: Atom PDF