diff --git a/bundles/zfs/items.py b/bundles/zfs/items.py index a990f6a..11661d5 100644 --- a/bundles/zfs/items.py +++ b/bundles/zfs/items.py @@ -76,7 +76,13 @@ svc_systemd = { }, } -zfs_datasets = node.metadata.get('zfs/datasets', {}) +for name, attrs in node.metadata.get('zfs/datasets', {}).items(): + zfs_datasets[name] = attrs + + if 'mountpoint' not in attrs: + zfs_datasets[name]['canmount'] = 'off' + else: + zfs_datasets[name]['canmount'] = 'on' for name, attrs in node.metadata.get('zfs/pools', {}).items(): zfs_pools[name] = attrs