diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-02-18 13:45:53 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-02-18 16:10:43 +0100 |
commit | 9b4c04565cc3a61ac1ed2a2b4de9d5a00bc2ceae (patch) | |
tree | a34c686bb2d44d32477f19554f3779f68afdfb85 /src/hydrilla | |
parent | 136859ca6da6350853040b01f9a4bb3af09689df (diff) | |
download | hydrilla-builder-9b4c04565cc3a61ac1ed2a2b4de9d5a00bc2ceae.tar.gz hydrilla-builder-9b4c04565cc3a61ac1ed2a2b4de9d5a00bc2ceae.zip |
make "uuid" an optional property
Diffstat (limited to 'src/hydrilla')
-rw-r--r-- | src/hydrilla/builder/build.py | 7 | ||||
m--------- | src/hydrilla/schemas | 0 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/hydrilla/builder/build.py b/src/hydrilla/builder/build.py index 58fe1b2..2824e9b 100644 --- a/src/hydrilla/builder/build.py +++ b/src/hydrilla/builder/build.py @@ -253,9 +253,10 @@ class Build: Return a minimal item reference suitable for using in source description. """ - copy_props = ['type', 'identifier', 'long_name', 'uuid', 'description'] - if 'comment' in item_def: - copy_props.append('comment') + copy_props = ['type', 'identifier', 'long_name', 'description'] + for prop in ('comment', 'uuid'): + if prop in item_def: + copy_props.append(prop) if item_def['type'] == 'resource': item_list = self.resource_list diff --git a/src/hydrilla/schemas b/src/hydrilla/schemas -Subproject 1d1c93d5a9011ecdf58a4952afcb5a1faff30e7 +Subproject 5ef63e81ddd7299bfb738cae643bc48560b68a1 |