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

17 lines
410 B
Python
Raw Normal View History

2022-09-07 11:49:42 +00:00
from django.utils.translation import ugettext_lazy as _
from ops.const import StrategyChoice
2022-09-29 12:44:45 +00:00
from .base import BaseAutomation
2022-09-07 11:49:42 +00:00
2022-09-29 12:44:45 +00:00
class ReconcileAutomation(BaseAutomation):
2022-09-07 11:49:42 +00:00
class Meta:
2022-09-29 12:44:45 +00:00
verbose_name = _("Reconcile strategy")
2022-09-07 11:49:42 +00:00
def to_attr_json(self):
attr_json = super().to_attr_json()
attr_json.update({
'type': StrategyChoice.push
})
return attr_json