Skip to content

Commit

Permalink
update iocage.py - templatesnap iocroot
Browse files Browse the repository at this point in the history
  • Loading branch information
Defenso-QTH committed Sep 21, 2024
1 parent dce9e3c commit 7cd5c0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion iocage_lib/iocage.py
Original file line number Diff line number Diff line change
Expand Up @@ -1752,7 +1752,10 @@ def snapshot(self, name):
conf = ioc_json.IOCJson(path, silent=self.silent).json_get_value('all')

if ioc_common.check_truthy(conf['template']):
target = f"{self.iocroot}/templates/{uuid}"
target = os.path.join(
self.zpool.name, self.zpool.prefix, 'iocage',
'templates', uuid
)
else:
target = os.path.join(
self.zpool.name, self.zpool.prefix, 'iocage',
Expand Down

0 comments on commit 7cd5c0e

Please sign in to comment.