Skip to content

Commit

Permalink
add register_jobs for 2.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
whitej6 committed Jan 3, 2024
1 parent 7cccf70 commit 4308ebb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"""Jobs for {{ cookiecutter.system_of_record }} SSoT integration."""

from diffsync import DiffSyncFlags
from nautobot.extras.jobs import BooleanVar, Job
from nautobot.app.jobs import BooleanVar, Job, register_jobs
from nautobot_ssot.jobs.base import DataSource, DataTarget

from {{ cookiecutter.app_name }}.diffsync.adapters import {{ cookiecutter.system_of_record_slug }}, nautobot


Expand Down Expand Up @@ -89,3 +90,4 @@ def load_target_adapter(self):


jobs = [{{ cookiecutter.system_of_record_camel }}DataSource, {{ cookiecutter.system_of_record_camel }}DataTarget]
register_jobs(*jobs)

0 comments on commit 4308ebb

Please sign in to comment.