From 84b59f661157bf1cdce98348227fc5b7f4ee894b Mon Sep 17 00:00:00 2001 From: Ken Celenza Date: Thu, 23 May 2024 08:31:45 -0400 Subject: [PATCH 1/2] =?UTF-8?q?Fix=20issue=20with=20Git=20Repo=20not=20syn?= =?UTF-8?q?cing=20by=20changing=20to=20explicitly=20use=20cla=E2=80=A6=20(?= =?UTF-8?q?#762)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix issue with Git Repo not syncing by changing to explicitly use class_path property. --- changes/759.fixed | 1 + development/docker-compose.mysql.yml | 1 - nautobot_golden_config/jobs.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 changes/759.fixed diff --git a/changes/759.fixed b/changes/759.fixed new file mode 100644 index 00000000..465803c0 --- /dev/null +++ b/changes/759.fixed @@ -0,0 +1 @@ +Fix issue with Git Repo not syncing by changing to explicitly use class_path property. \ No newline at end of file diff --git a/development/docker-compose.mysql.yml b/development/docker-compose.mysql.yml index 062ada94..2f1103da 100644 --- a/development/docker-compose.mysql.yml +++ b/development/docker-compose.mysql.yml @@ -19,7 +19,6 @@ services: db: image: "mysql:8" command: - - "--default-authentication-plugin=mysql_native_password" - "--max_connections=1000" env_file: - "development.env" diff --git a/nautobot_golden_config/jobs.py b/nautobot_golden_config/jobs.py index c7defdb2..034e0591 100644 --- a/nautobot_golden_config/jobs.py +++ b/nautobot_golden_config/jobs.py @@ -115,7 +115,7 @@ def gc_repo_prep(job, data): job.logger.debug(f"In scope device count for this job: {job.qs.count()}", extra={"grouping": "Get Job Filter"}) job.logger.debug("Mapping device(s) to GC Settings.", extra={"grouping": "Device to Settings Map"}) job.device_to_settings_map = get_device_to_settings_map(queryset=job.qs) - gitrepo_types = list(set(get_repo_types_for_job(job.name))) + gitrepo_types = list(set(get_repo_types_for_job(job.class_path))) job.logger.debug( f"Repository types to sync: {', '.join(sorted(gitrepo_types))}", extra={"grouping": "GC Repo Syncs"}, From 8c1951dafb790a353364fd8e6157390a01d00048 Mon Sep 17 00:00:00 2001 From: itdependsnetworks Date: Thu, 23 May 2024 11:50:59 -0400 Subject: [PATCH 2/2] Prep v2.0.5 --- changes/759.fixed | 1 - docs/admin/release_notes/version_2.0.md | 5 +++++ pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) delete mode 100644 changes/759.fixed diff --git a/changes/759.fixed b/changes/759.fixed deleted file mode 100644 index 465803c0..00000000 --- a/changes/759.fixed +++ /dev/null @@ -1 +0,0 @@ -Fix issue with Git Repo not syncing by changing to explicitly use class_path property. \ No newline at end of file diff --git a/docs/admin/release_notes/version_2.0.md b/docs/admin/release_notes/version_2.0.md index 4d211ae7..c59f0ee3 100755 --- a/docs/admin/release_notes/version_2.0.md +++ b/docs/admin/release_notes/version_2.0.md @@ -11,6 +11,11 @@ !!! note Please see [migrating guide](../migrating_to_v2.md) for details on migration. +## v2.0.5 2024-05 + +### Fixed + +- [#759](https://github.com/nautobot/nautobot-app-golden-config/issues/749) - Fix issue with Git Repo not syncing by changing to explicitly use class_path property. ## v2.0.4 2024-04 diff --git a/pyproject.toml b/pyproject.toml index 36dea317..d7c05ff2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nautobot-golden-config" -version = "2.0.4" +version = "2.0.5" description = "An app for configuration on nautobot" authors = ["Network to Code, LLC "] license = "Apache-2.0"