jumpserver/apps/assets/models/automations/gather_facts.py

17 lines
350 B
Python
Raw Normal View History

2022-10-14 10:59:28 +00:00
from django.utils.translation import ugettext_lazy as _
from .base import BaseAutomation
2022-10-14 11:40:51 +00:00
__all__ = ['GatherFactsAutomation']
2022-10-14 10:59:28 +00:00
class GatherFactsAutomation(BaseAutomation):
class Meta:
verbose_name = _("Gather asset facts")
def save(self, *args, **kwargs):
self.type = 'gather_facts'
super().save(*args, **kwargs)