Skip to content

Commit

Permalink
update zfs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Defenso-QTH committed Sep 21, 2024
1 parent 9b63536 commit 68a3dca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions iocage_lib/zfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ def iocage_activated_pool():
def iocage_activated_dataset():
pool = iocage_activated_pool()
if pool:
if os.path.join(pool, pool.prefix, 'iocage') in get_dependents(pool):
return os.path.join(pool, pool.prefix, 'iocage')
prefix = dataset_properties(pool).get(IOCAGE_PREFIX_PROP, '')
if os.path.join(pool, prefix, 'iocage') in get_dependents(pool):
return os.path.join(pool, prefix, 'iocage')

return None

Expand Down

0 comments on commit 68a3dca

Please sign in to comment.