From fb5ac3c70dfe7e58fe516d86354b8d513e55d4a0 Mon Sep 17 00:00:00 2001 From: Steven W <111259311+DistantVoyager@users.noreply.github.com> Date: Thu, 11 Jan 2024 10:46:37 -0500 Subject: [PATCH] Removed optional job_result parameter from ensure_git_repository (#695) * Removed optional job_result parameter from ensure_git_repository * Skip pylint check for unused argument in get_refreshed_repos --- nautobot_golden_config/jobs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nautobot_golden_config/jobs.py b/nautobot_golden_config/jobs.py index 093bac80..911f11fa 100644 --- a/nautobot_golden_config/jobs.py +++ b/nautobot_golden_config/jobs.py @@ -37,7 +37,7 @@ name = "Golden Configuration" # pylint: disable=invalid-name -def get_refreshed_repos(job_obj, repo_type, data=None): +def get_refreshed_repos(job_obj, repo_type, data=None): # pylint: disable=unused-argument """Small wrapper to pull latest branch, and return a GitRepo plugin specific object.""" devices = get_job_filter(data) dynamic_groups = DynamicGroup.objects.exclude(golden_config_setting__isnull=True) @@ -51,7 +51,7 @@ def get_refreshed_repos(job_obj, repo_type, data=None): repositories = [] for repository_record in repository_records: repo = GitRepository.objects.get(id=repository_record) - ensure_git_repository(repo, job_obj.job_result) + ensure_git_repository(repo) git_repo = GitRepo(repo) repositories.append(git_repo)