aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-09 17:22:59 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-09 17:22:59 +0100
commitded47952fc7f3e4484c6ae4a559e514cb660f2bc (patch)
tree05b03c75973fce54dff0bb32698b3a4748a5b1bf
parente7824b93359d754c2e9ade5e1f58786d3ac455d8 (diff)
downloadhaketilo-hydrilla-ded47952fc7f3e4484c6ae4a559e514cb660f2bc.tar.gz
haketilo-hydrilla-ded47952fc7f3e4484c6ae4a559e514cb660f2bc.zip
make resource dependency specifier an object
-rw-r--r--src/hydrilla/server/serve.py3
m---------src/test/source-package-example0
2 files changed, 2 insertions, 1 deletions
diff --git a/src/hydrilla/server/serve.py b/src/hydrilla/server/serve.py
index 815ac63..d56085c 100644
--- a/src/hydrilla/server/serve.py
+++ b/src/hydrilla/server/serve.py
@@ -108,7 +108,8 @@ class ResourceInfo(ItemInfo):
"""Initialize ResourceInfo using resource definition read from JSON."""
super().__init__(resource_obj)
- self.dependencies = resource_obj.get('dependencies', [])
+ dependencies = resource_obj.get('dependencies', [])
+ self.dependencies = [res_ref['identifier'] for res_ref in dependencies]
class MappingInfo(ItemInfo):
"""Shortened data of a mapping."""
diff --git a/src/test/source-package-example b/src/test/source-package-example
-Subproject e571b3911f198e3feccc8d06390c79131f9cf09
+Subproject 26c4622417cb786825b1b18083adfe5ce44b275