Skip to content

Commit

Permalink
🐛 add resource using config api
Browse files Browse the repository at this point in the history
  • Loading branch information
Wytamma committed May 30, 2023
1 parent d70903d commit 27d1cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snk/nest.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def additional_resources(self, pipeline_dir: Path, resources: List[Path]):
"""
# validate_resources(resources)
snk_config = SnkConfig.from_path(pipeline_dir / ".snk")
snk_config.resources += [str(r) for r in resources if r not in snk_config.resources]
snk_config.add_resources(resources, pipeline_dir)
snk_config.to_yaml(pipeline_dir / ".snk")

def copy_nonstandard_config(self, pipeline_dir: Path, config_path: Path):
Expand Down

0 comments on commit 27d1cdf

Please sign in to comment.