Project

General

Profile

Actions

Bug #14184

closed

Enhance bug message when creating a technique with the same name as an existing GM

Added by Félix DALLIDET almost 6 years ago. Updated about 1 year ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Web - Technique editor
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Very Small
Priority:
0
Name check:
Fix check:
Regression:
No

Description

I tried to add a technique with the name "user home", which was interpreted in cfengine as "user_home" which is the name of an already existing GM.
The message was not that much explicit and I think it should explicitly tell that the technique name is already in use in Rudder.

An Error occured! Could not write technique 'user_home' from path /var/rudder/configuration-repository/ncf, cause is: Error while running post-hook command /var/rudder/configuration-repository/ncf/ncf-hooks.d/post.write_technique.50_rudderify.sh /var/rudder/configuration-repository/ncf user_home
Details:

INFO: Alternative source path added: /var/rudder/configuration-repository/ncf
ERROR: Could not parse Technique 'user_home'
 caused by : Error while running post-hook command cf-promises -pjson -f /var/rudder/configuration-repository/ncf/50_techniques/user_home/user_home.cf
/var/rudder/configuration-repository/ncf/50_techniques/user_home/user_home.cf:9:0: error: Conflicting arity in calling bundle user_home, expected 0 arguments, 2 given

Error: Unable to create Rudder Technique files related to ncf Technique user_home, cannot find ncf Technique user_home
None


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #12869: If we call a technique with same name as a generic method, policy generation fails because of a duplicate bundle nameRejectedActions
Actions

Also available in: Atom PDF