Project

General

Profile

Actions

User story #20162

closed

User story #20130: rudder language generate_lib should use the existing ncf python library instead of implement itself the ncf methods parsing

The dsc based methods are not properly parsed

Added by Félix DALLIDET over 2 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
rudderc
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
To do
Fix check:
To do
Regression:

Description

root@server:~# /opt/rudder/share/language/tools/generate_lib | jq '.data.dsc.states[0]'
{
  "class_parameter": "MOFFile",
  "class_parameter_id": 0,
  "class_prefix": "dsc_apply",
  "deprecated": "",
  "description": "Ensure that all MOF files under MOFFile are applied via DSC.",
  "documentation": "Ensure that all MOF files contained under the target folder are applied via DSC\non the target node.",
  "method": "dsc_apply",
  "name": "DSC Apply",
  "parameters": [],
  "resource": "dsc",
  "resource_parameters": [
    {
      "constraints": {},
      "description": "Path to the mof that need to be applied",
      "name": "MOFFile",
      "type": "string" 
    }
  ],
  "source_file": "/var/rudder/configuration-repository/ncf/30_generic_methods/dsc_apply.cf",
  "state": "apply",
  "supported_agents": []
}

The supported_agents field is always empty for those methods.

Actions #1

Updated by Félix DALLIDET over 2 years ago

  • Status changed from New to In progress
  • Assignee set to Félix DALLIDET
Actions #2

Updated by Félix DALLIDET over 2 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Félix DALLIDET to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder/pull/3953
Actions #3

Updated by Félix DALLIDET over 2 years ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by Vincent MEMBRÉ over 2 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.0.0~beta2 which was released today.

Actions

Also available in: Atom PDF