items/zfs_dataset: add automatic dependency for all files, directories and git_deploy of a dataset
This commit is contained in:
parent
b3e322ae08
commit
1086ed28c3
6 changed files with 9 additions and 28 deletions
|
@ -119,6 +119,14 @@ class ZFSDataset(Item):
|
|||
# XXX Could be optimized by finding the "largest"
|
||||
# parent only.
|
||||
yield item.id
|
||||
elif self.attributes.get('mountpoint'):
|
||||
for item_type in ['directory', 'file', 'git_deploy']:
|
||||
if (
|
||||
item.ITEM_TYPE_NAME == item_type and
|
||||
item.name.startswith('{}:{}'.format(item_type, self.attributes['mountpoint']))
|
||||
):
|
||||
yield item.id
|
||||
|
||||
|
||||
if not pool_item_found:
|
||||
raise BundleError(_(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue