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

16 lines
403 B
Python
Raw Normal View History

2022-10-14 10:59:28 +00:00
from django.utils.translation import ugettext_lazy as _
2022-10-25 10:43:34 +00:00
from assets.const import AutomationTypes
2022-10-14 10:59:28 +00:00
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):
def save(self, *args, **kwargs):
2022-10-25 10:43:34 +00:00
self.type = AutomationTypes.gather_facts
2022-10-14 10:59:28 +00:00
super().save(*args, **kwargs)
2022-10-25 10:43:34 +00:00
class Meta:
verbose_name = _("Gather asset facts")