Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #846, repo provided_contents check for gc settings from repo #852

Merged
merged 2 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/846.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixed missing provides content check for GC settings syncing from Git Repo.
6 changes: 6 additions & 0 deletions nautobot_golden_config/datasources.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ def refresh_git_gc_properties(repository_record, job_result, delete=False): # p
│ ├── config_replaces

"""
if "nautobot_golden_config.pluginproperties" not in repository_record.provided_contents:
job_result.log(
"Skipping sync for Golden Config properties because the Git repository does not provide the content.",
level_choice=LogLevelChoices.LOG_INFO,
)
return
golden_config_path = os.path.join(repository_record.filesystem_path, "golden_config")
if not os.path.isdir(golden_config_path):
job_result.log(
Expand Down