From 27d1cdf6d14146fac4c2b25a6bb5c32938a0839a Mon Sep 17 00:00:00 2001 From: Wytamma Wirth Date: Tue, 30 May 2023 14:27:05 +1000 Subject: [PATCH] :bug: add resource using config api --- snk/nest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snk/nest.py b/snk/nest.py index b993924..158a8e4 100644 --- a/snk/nest.py +++ b/snk/nest.py @@ -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):