Skip to content

Commit

Permalink
Fixing template formating
Browse files Browse the repository at this point in the history
Signed-off-by: HUG0-D <[email protected]>
  • Loading branch information
HUG0-D committed Nov 15, 2024
1 parent 07abe2e commit 8759e25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cimgen/languages/modernpython/lang_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ def _set_cim_data_type(text, render) -> str:
attribute = eval(render(text))
cim_data_type = ""
if attribute["is_cim_datatype"] or attribute["is_primitive_attribute"]:
cim_data_type = """"cim_data_type": """ + attribute["attribute_class"] + ",\n\t\t"
cim_data_type += "\n "
cim_data_type += """"cim_data_type": """ + attribute["attribute_class"] + ","
return cim_data_type


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class {{class_name}}({{sub_class_of}}):
"is_enum_attribute": {{#is_enum_attribute}}True{{/is_enum_attribute}}{{^is_enum_attribute}}False{{/is_enum_attribute}},
"is_list_attribute": {{#is_list_attribute}}True{{/is_list_attribute}}{{^is_list_attribute}}False{{/is_list_attribute}},
"is_primitive_attribute": {{#is_primitive_attribute}}True{{/is_primitive_attribute}}{{^is_primitive_attribute}}False{{/is_primitive_attribute}},
"is_cim_datatype": {{#is_cim_datatype}}True{{/is_cim_datatype}}{{^is_cim_datatype}}False{{/is_cim_datatype}},
{{#setCimDataType}}{{.}}{{/setCimDataType}}},
"is_cim_datatype": {{#is_cim_datatype}}True{{/is_cim_datatype}}{{^is_cim_datatype}}False{{/is_cim_datatype}},{{#setCimDataType}}{{.}}{{/setCimDataType}}
},
)

{{/attributes}}
Expand Down

0 comments on commit 8759e25

Please sign in to comment.