Skip to content

Commit 35d3a1c

Browse files
authored
Merge pull request #58 from NOAA-GFDL/update-get_components
Update key name from `switch` to `postprocess_on`
2 parents c8eed11 + e186d92 commit 35d3a1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jinja2Filters/get_components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_components(yamlfile):
2121
yaml_ = yaml.safe_load(file_)
2222

2323
for component in yaml_["postprocess"]["components"]:
24-
if component['switch'] is True:
24+
if component['postprocess_on'] is True:
2525
components.append(component["type"])
2626

2727
# we want to return a list, but some other scripts are expecting a space-separated string

0 commit comments

Comments
 (0)