From 21658503a279c3b31246c39ce9c0d04d97edc3ef Mon Sep 17 00:00:00 2001 From: Gary Snider <75227981+gsnider2195@users.noreply.github.com> Date: Mon, 9 Sep 2024 14:56:47 -0700 Subject: [PATCH] pylint --- nautobot_device_onboarding/jobs.py | 4 ++-- nautobot_device_onboarding/tests/test_transform.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nautobot_device_onboarding/jobs.py b/nautobot_device_onboarding/jobs.py index 1edac236..6ee5f279 100755 --- a/nautobot_device_onboarding/jobs.py +++ b/nautobot_device_onboarding/jobs.py @@ -632,9 +632,9 @@ def run( if self.debug: self.logger.debug("Checking for last_network_data_sync custom field") try: - cf = CustomField.objects.get(key="last_network_data_sync") + cf = CustomField.objects.get(key="last_network_data_sync") # pylint:disable=invalid-name except ObjectDoesNotExist: - cf, _ = CustomField.objects.get_or_create( + cf, _ = CustomField.objects.get_or_create( # pylint:disable=invalid-name label="Last Network Data Sync", key="last_network_data_sync", type=CustomFieldTypeChoices.TYPE_DATE, diff --git a/nautobot_device_onboarding/tests/test_transform.py b/nautobot_device_onboarding/tests/test_transform.py index 67e620ef..efea3f5b 100755 --- a/nautobot_device_onboarding/tests/test_transform.py +++ b/nautobot_device_onboarding/tests/test_transform.py @@ -57,7 +57,7 @@ def populate_repo(self, path, url, *args, **kwargs): """Simple helper to populate a mock repo with some data.""" os.makedirs(path, exist_ok=True) os.makedirs(os.path.join(path, "onboarding_command_mappers"), exist_ok=True) - with open(os.path.join(path, "onboarding_command_mappers", "foo_bar.yml"), "w", encoding="utf-8") as fd: + with open(os.path.join(path, "onboarding_command_mappers", "foo_bar.yml"), "w", encoding="utf-8") as fd: # pylint:disable=invalid-name yaml.dump( { "sync_devices": {