perf: change ip db path

This commit is contained in:
ibuler
2025-07-28 11:31:27 +08:00
committed by 老广
parent 835eb2e3d0
commit 14e0396508
6 changed files with 44 additions and 19 deletions

View File

@@ -66,6 +66,7 @@ class PlaybookViewSet(JMSBulkModelViewSet):
instance = serializer.save()
base_path = safe_join(settings.DATA_DIR, "ops", "playbook")
clone_id = self.request.query_params.get('clone_from')
if clone_id:
src_path = safe_join(base_path, clone_id)
dest_path = safe_join(base_path, str(instance.id))