fix: use recipeName instead of recipe.Name

This provides a correctly formatted recipe name for machine reading
(i.e. with `-` and such) instead of the more human readable version
(i.e. with spaces).

Closes coop-cloud/organising#162.
This commit is contained in:
decentral1se 2021-09-10 09:56:58 +02:00
parent f39c8cbe21
commit 39ad6e8aa8
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ func getRecipeMeta(recipeName string) (catalogue.RecipeMeta, error) {
err := fmt.Errorf("recipe '%s' does not exist?", recipeName)
return catalogue.RecipeMeta{}, err
}
if err := recipePkg.EnsureExists(recipeMeta.Name); err != nil {
if err := recipePkg.EnsureExists(recipeName); err != nil {
return catalogue.RecipeMeta{}, err
}