jumpserver/apps/ops/models/utils.py

14 lines
362 B
Python
Raw Normal View History

2016-12-11 12:50:26 +00:00
# ~*~ coding: utf-8 ~*~
from __future__ import unicode_literals
from ansible import *
from cron import *
from sudo import *
2016-12-12 03:08:10 +00:00
__all__ = ["generate_fake"]
2016-12-11 12:50:26 +00:00
def generate_fake():
for cls in (TaskRecord, AnsiblePlay, AnsibleTask, AnsibleHostResult, CronTable,
2016-12-12 03:08:10 +00:00
HostAlia, UserAlia, CmdAlia, RunasAlia, Privilege, Sudo):
2016-12-11 12:50:26 +00:00
cls.generate_fake()