mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-13 05:49:07 +00:00
perf: mysql postgresql
This commit is contained in:
@@ -199,8 +199,8 @@ class JMSInventory:
|
||||
|
||||
def write_to_file(self, path):
|
||||
path_dir = os.path.dirname(path)
|
||||
data = self.generate(path_dir)
|
||||
if not os.path.exists(path_dir):
|
||||
os.makedirs(path_dir, 0o700, True)
|
||||
data = self.generate(path_dir)
|
||||
with open(path, 'w') as f:
|
||||
f.write(json.dumps(data, indent=4))
|
||||
|
Reference in New Issue
Block a user