mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-29 21:51:31 +00:00
perf: change ip db path
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user