Skip to content

Commit

Permalink
Removed optional job_result parameter from ensure_git_repository (#695)
Browse files Browse the repository at this point in the history
* Removed optional job_result parameter from ensure_git_repository

* Skip pylint check for unused argument in get_refreshed_repos
  • Loading branch information
DistantVoyager authored Jan 11, 2024
1 parent f4a6c8e commit fb5ac3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nautobot_golden_config/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

Expand Down

0 comments on commit fb5ac3c

Please sign in to comment.