From cba0d6fa683d64de3b74ef130e101d2920df0611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20Th=C3=A9bault?= Date: Sun, 22 Sep 2024 22:27:41 +0900 Subject: [PATCH] update ioc_json.py - fix location change for template --- iocage_lib/ioc_json.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/iocage_lib/ioc_json.py b/iocage_lib/ioc_json.py index 54882bbb..d686fa3f 100644 --- a/iocage_lib/ioc_json.py +++ b/iocage_lib/ioc_json.py @@ -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( {