1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #12112: Do not link data source URL for local paths

This commit is contained in:
jeremystretch
2023-03-31 09:06:16 -04:00
parent cdad50e051
commit 730eb2e83b
4 changed files with 11 additions and 2 deletions

View File

@@ -95,6 +95,10 @@ class DataSource(JobsMixin, PrimaryModel):
def url_scheme(self):
return urlparse(self.source_url).scheme.lower()
@property
def is_local(self):
return self.type == DataSourceTypeChoices.LOCAL
@property
def ready_for_sync(self):
return self.enabled and self.status not in (