From e40326f7d53ad60686df876129dda7c79b635347 Mon Sep 17 00:00:00 2001 From: Justin Drew <2396364+jdrew82@users.noreply.github.com> Date: Wed, 18 Dec 2024 08:37:12 -0600 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Correct=20the=20name=20of?= =?UTF-8?q?=20the=20example=20Device=20model=20used=20in=20Adapter=20and?= =?UTF-8?q?=20change=20DiffSync=20to=20SSoT.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{{ cookiecutter.app_name }}/diffsync/adapters.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nautobot-app-ssot/{{ cookiecutter.project_slug }}/{{ cookiecutter.app_name }}/diffsync/adapters.py b/nautobot-app-ssot/{{ cookiecutter.project_slug }}/{{ cookiecutter.app_name }}/diffsync/adapters.py index 8f6781d..745b686 100644 --- a/nautobot-app-ssot/{{ cookiecutter.project_slug }}/{{ cookiecutter.app_name }}/diffsync/adapters.py +++ b/nautobot-app-ssot/{{ cookiecutter.project_slug }}/{{ cookiecutter.app_name }}/diffsync/adapters.py @@ -2,13 +2,13 @@ from diffsync import Adapter -from {{ cookiecutter.app_name }}.diffsync.models import DiffsyncDevice +from {{ cookiecutter.app_name }}.diffsync.models import DeviceSSoTModel class {{ cookiecutter.system_of_record_camel }}RemoteAdapter(Adapter): """DiffSync adapter for {{ cookiecutter.system_of_record }}.""" - device = DiffsyncDevice + device = DeviceSSoTModel top_level = ["device"] @@ -17,7 +17,7 @@ def __init__(self, *args, job=None, sync=None, client=None, **kwargs): Args: job (object, optional): {{ cookiecutter.system_of_record }} job. Defaults to None. - sync (object, optional): {{ cookiecutter.system_of_record }} DiffSync. Defaults to None. + sync (object, optional): {{ cookiecutter.system_of_record }} SSoT. Defaults to None. client (object): {{ cookiecutter.system_of_record }} API client connection object. """ super().__init__(*args, **kwargs) @@ -26,19 +26,19 @@ def __init__(self, *args, job=None, sync=None, client=None, **kwargs): self.conn = client def load(self): - """Load data from {{ cookiecutter.system_of_record }} into DiffSync models.""" + """Load data from {{ cookiecutter.system_of_record }} into SSoT models.""" raise NotImplementedError() class {{ cookiecutter.system_of_record_camel }}NautobotAdapter(NautobotAdapter): """DiffSync adapter for Nautobot.""" - device = NautobotDevice + device = DeviceSSoTModel top_level = ["device"] {% if cookiecutter.direction_of_sync == "From Nautobot" %} def load(self): - """Load data from Nautobot into DiffSync models.""" + """Load data from Nautobot into SSoT models.""" raise NotImplementedError() {% endif %}