diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-09-30 16:18:43 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-09-30 16:33:05 +0900 |
commit | ee19290f2c39359a85632a1f053f857dacd8f895 (patch) | |
tree | e4583b7e3fc05f61a49af73f1e3d210bb07a1e4e | |
parent | d8aba233cbb79a035a9462a0b4d851617b7509ed (diff) | |
download | ybd-wip/tristan/add-description-to-metadata.tar.gz |
Add description field to chunk metadatawip/tristan/add-description-to-metadata
-rw-r--r-- | ybd/splitting.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ybd/splitting.py b/ybd/splitting.py index ec81402..ebe5826 100644 --- a/ybd/splitting.py +++ b/ybd/splitting.py @@ -268,6 +268,8 @@ def write_metafile(rules, splits, dn): if config.get('artifact-version', 0) not in range(0, 1): metadata['cache'] = dn.get('cache') + if dn.get('description') is not None: + metadata['description'] = dn.get('description') meta = os.path.join(dn['baserockdir'], dn['name'] + '.meta') |