From ded47952fc7f3e4484c6ae4a559e514cb660f2bc Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Wed, 9 Feb 2022 17:22:59 +0100 Subject: make resource dependency specifier an object --- src/hydrilla/server/serve.py | 3 ++- src/test/source-package-example | 2 +- 2 files changed, 3 insertions(+), 2 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 index e571b39..26c4622 160000 --- a/src/test/source-package-example +++ b/src/test/source-package-example @@ -1 +1 @@ -Subproject commit e571b3911f198e3feccc8d06390c79131f9cf09d +Subproject commit 26c4622417cb786825b1b18083adfe5ce44b2756 -- cgit v1.2.3