Actions
Bug #11021
closedCannot generate ps1 technique file (missing 50_techniques directory)
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Technique editor
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:
Description
Error is
Error: Unable to create Rudder Technique files related to ncf Technique foo ([Errno 2] No such file or directory: u'/var/rudder/configuration-repository/dsc/ncf/50_techniques/foo.ps1') Traceback (most recent call last): File "/usr/share/ncf/tools/ncf_dsc.py", line 50, in convert_one_to_dsc write_dsc_technique(metadata, methods) File "/usr/share/ncf/tools/ncf_dsc.py", line 65, in write_dsc_technique file = codecs.open(os.path.realpath(os.path.join("/var/rudder/configuration-repository/dsc/ncf/50_techniques", technique_name + ".ps1" )), "w", encoding="utf-8") File "/usr/lib/python2.7/codecs.py", line 896, in open file = __builtin__.open(filename, mode, buffering) IOError: [Errno 2] No such file or directory: u'/var/rudder/configuration-repository/dsc/ncf/50_techniques/foo.ps1' ERROR: An error happened in /var/rudder/configuration-repository/ncf/ncf-hooks.d/post.write_technique.51_dscify.sh during the step: Creating rudder dsc technique "foo" from ncf technique
creating /var/rudder/configuration-repository/dsc/ncf/50_techniques solves the issue
Actions