ipfabric_netbox 4.3.0b10__py3-none-any.whl → 4.3.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ipfabric_netbox might be problematic. Click here for more details.

@@ -6,7 +6,7 @@ class NetboxIPFabricConfig(PluginConfig):
6
6
  name = "ipfabric_netbox"
7
7
  verbose_name = "NetBox IP Fabric SoT Plugin"
8
8
  description = "Sync IP Fabric into NetBox"
9
- version = "4.3.0b10"
9
+ version = "4.3.1"
10
10
  base_url = "ipfabric"
11
11
  min_version = "4.4.0"
12
12
 
ipfabric_netbox/jobs.py CHANGED
@@ -56,7 +56,19 @@ def sync_ipfabric(job, *args, **kwargs):
56
56
  # We want to create new Job only if scheduled time was before this Job started
57
57
  # The current sync might have been changed while this job was running
58
58
  sync.refresh_from_db()
59
- if not sync.scheduled or (sync.scheduled and sync.scheduled > job.started):
59
+ if not sync.scheduled or (
60
+ sync.scheduled
61
+ and sync.scheduled > job.started
62
+ and sync.jobs.filter(
63
+ status__in=[
64
+ JobStatusChoices.STATUS_SCHEDULED,
65
+ JobStatusChoices.STATUS_PENDING,
66
+ JobStatusChoices.STATUS_RUNNING,
67
+ ]
68
+ )
69
+ .exclude(pk=job.pk)
70
+ .exists()
71
+ ):
60
72
  logger.info(
61
73
  f"Not scheduling a new job for IPFabricSync {sync.pk} as the scheduled time was changed while the job was running."
62
74
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ipfabric_netbox
3
- Version: 4.3.0b10
3
+ Version: 4.3.1
4
4
  Summary: NetBox plugin to sync IP Fabric data into NetBox
5
5
  License: MIT
6
6
  Keywords: netbox,ipfabric,plugin,sync
@@ -1,4 +1,4 @@
1
- ipfabric_netbox/__init__.py,sha256=r-JYuPdUq2wAFRTF2HozJNO6cLsDYNYXtaxfMf8xlhg,675
1
+ ipfabric_netbox/__init__.py,sha256=6oMR930BASoiKkrBGOrXJ1b0oymQDP_Dm80OUEV8vbA,672
2
2
  ipfabric_netbox/api/__init__.py,sha256=XRclTGWVR0ZhAAwgYul5Wm_loug5_hUjEumbLQEwKYM,47
3
3
  ipfabric_netbox/api/serializers.py,sha256=lr_PWG0tqAxaKtkIIm8Gx2B-tn9yENQIfKY9cvu8Cco,6581
4
4
  ipfabric_netbox/api/urls.py,sha256=1fXXVTxNY5E64Nfz6b7zXD9bZI3FcefuxAWKMe0w_QU,1240
@@ -13,7 +13,7 @@ ipfabric_netbox/graphql/enums.py,sha256=QFhwiwUKJekxQfsOGk_-70_WnkzrKEP_zIBMrin0
13
13
  ipfabric_netbox/graphql/filters.py,sha256=B8xy9r9a18vWfV6a6tHXAN1FUcoxI6MOrbsdNmzusNI,12991
14
14
  ipfabric_netbox/graphql/schema.py,sha256=5UVHA1hHRvho5eLuuS-HLXTVTbxpUUx68ovG03gumGE,3209
15
15
  ipfabric_netbox/graphql/types.py,sha256=8RxdxiA-WnoaWSzh-tUJCuZBYGmd6QjfJiJcLirRMKY,5961
16
- ipfabric_netbox/jobs.py,sha256=rFQuuc_6WVZlJ2EGDDj2ml14L4JeFneSSTiKA8N1SUg,4189
16
+ ipfabric_netbox/jobs.py,sha256=1F_kePoGCzZ8zfy--v_R8jcAihfZ4U1xnP6b72mJAf0,4581
17
17
  ipfabric_netbox/migrations/0001_initial.py,sha256=VphxkWL6QzWq2tcrdXlog718xQtiEGizKwS830z_fOs,13824
18
18
  ipfabric_netbox/migrations/0001_initial_squashed_0013_switch_to_branching_plugin.py,sha256=OvofuA8ImeJmjrbtCrZPcRxAUWx2Ww4DUXLBZYsy6qE,21381
19
19
  ipfabric_netbox/migrations/0002_ipfabricsnapshot_status.py,sha256=xQpouHjOutyj6riN2B592njzSvz_icpkUbo5W7nWLYw,431
@@ -83,6 +83,6 @@ ipfabric_netbox/utilities/logging.py,sha256=GYknjocMN6LQ2873_az3y0RKm29TCXaWviUI
83
83
  ipfabric_netbox/utilities/nbutils.py,sha256=kFBEiJOGvr_49hJWCS2duXojx2-A9kVk0Xp_vj0ohfs,2641
84
84
  ipfabric_netbox/utilities/transform_map.py,sha256=GpM_7Mm6FE0qV2qbyj4YfDn0l-JkeeEHQOZkNVSSHk4,2391
85
85
  ipfabric_netbox/views.py,sha256=JcXvoLo8JQ0PUyvUwi1tZQgrxw9okKBlocsIUKoGAbo,44758
86
- ipfabric_netbox-4.3.0b10.dist-info/METADATA,sha256=HmDqK34C2rPMsLnQF97Jl6AXYsREmhbdrkJaxntNrI8,4755
87
- ipfabric_netbox-4.3.0b10.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
88
- ipfabric_netbox-4.3.0b10.dist-info/RECORD,,
86
+ ipfabric_netbox-4.3.1.dist-info/METADATA,sha256=0J2PbT_meDpcAXRLzV28q-eq-gI4OscqPF-LRDNJO7M,4752
87
+ ipfabric_netbox-4.3.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
88
+ ipfabric_netbox-4.3.1.dist-info/RECORD,,