Skip to content

Commit

Permalink
update ioc_json.py - fix location change for template
Browse files Browse the repository at this point in the history
  • Loading branch information
Defenso-QTH committed Sep 22, 2024
1 parent 837f484 commit cba0d6f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions iocage_lib/ioc_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -1861,8 +1861,13 @@ def json_set_value(self, prop, _import=False, default=False):

conf["type"] = "template"

self.location = new_location.lstrip(self.pool).replace(
"/iocage", self.iocroot)
self.location = new_location.lstrip(
self.zpool.name
).lstrip(
self.zpool.prefix
).replace(
"/iocage", self.iocroot
)

iocage_lib.ioc_common.logit(
{
Expand Down

0 comments on commit cba0d6f

Please sign in to comment.