annet 0.14.0__py3-none-any.whl → 0.14.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 annet might be problematic. Click here for more details.
- annet/adapters/netbox/v37/storage.py +1 -1
- annet/annlib/jsontools.py +5 -1
- {annet-0.14.0.dist-info → annet-0.14.1.dist-info}/METADATA +1 -1
- {annet-0.14.0.dist-info → annet-0.14.1.dist-info}/RECORD +9 -9
- {annet-0.14.0.dist-info → annet-0.14.1.dist-info}/AUTHORS +0 -0
- {annet-0.14.0.dist-info → annet-0.14.1.dist-info}/LICENSE +0 -0
- {annet-0.14.0.dist-info → annet-0.14.1.dist-info}/WHEEL +0 -0
- {annet-0.14.0.dist-info → annet-0.14.1.dist-info}/entry_points.txt +0 -0
- {annet-0.14.0.dist-info → annet-0.14.1.dist-info}/top_level.txt +0 -0
annet/annlib/jsontools.py
CHANGED
|
@@ -28,7 +28,11 @@ def apply_json_fragment(
|
|
|
28
28
|
try:
|
|
29
29
|
new_value = pointer.get(new_fragment)
|
|
30
30
|
except jsonpointer.JsonPointerException:
|
|
31
|
-
# no value found in new_fragment by the pointer,
|
|
31
|
+
# no value found in new_fragment by the pointer,
|
|
32
|
+
# try to delete it from the new config
|
|
33
|
+
doc, part = pointer.to_last(full_new_config)
|
|
34
|
+
if isinstance(doc, dict) and isinstance(part, str):
|
|
35
|
+
doc.pop(part, None)
|
|
32
36
|
continue
|
|
33
37
|
|
|
34
38
|
_ensure_pointer_exists(full_new_config, pointer)
|
|
@@ -34,13 +34,13 @@ annet/adapters/netbox/common/storage_opts.py,sha256=rl_0pr3VzmOy6PDZIUMkKSBfJh90
|
|
|
34
34
|
annet/adapters/netbox/v24/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
35
|
annet/adapters/netbox/v24/storage.py,sha256=ogCu5XXIpcpPtuz7dWfDFIbqtz8k5G96PL6mhAQWwBU,6026
|
|
36
36
|
annet/adapters/netbox/v37/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
|
-
annet/adapters/netbox/v37/storage.py,sha256=
|
|
37
|
+
annet/adapters/netbox/v37/storage.py,sha256=3Xv4BoStxy80iev4B9WMxUxl_U0LdKG6ZoTykMpliLw,7485
|
|
38
38
|
annet/annlib/__init__.py,sha256=fT1l4xV5fqqg8HPw9HqmZVN2qwS8i6X1aIm2zGDjxKY,252
|
|
39
39
|
annet/annlib/command.py,sha256=uuBddMQphtn8P5MO5kzIa8_QrtMns-k05VeKv1bcAuA,1043
|
|
40
40
|
annet/annlib/diff.py,sha256=UPt3kYFQdQdVVy3ePYzNHPAxMVmHxCrCnZnMCV6ou2Q,4587
|
|
41
41
|
annet/annlib/errors.py,sha256=jBcSFzY6Vj-FxR__vqjFm-87AwYQ0xHuAopTirii5AU,287
|
|
42
42
|
annet/annlib/filter_acl.py,sha256=0w1VF6WcONiTYTQh0yWi6_j9rCTc_kMLAUMr0hbdkNU,7203
|
|
43
|
-
annet/annlib/jsontools.py,sha256=
|
|
43
|
+
annet/annlib/jsontools.py,sha256=aGf1ZmkyuQ7FOB7-sP4KGE4smLd7pDZHBUGEF_XQTso,3651
|
|
44
44
|
annet/annlib/lib.py,sha256=eJ4hcVuQ6pdYBzLs4YKCHFtq45idOfZCYp92XfF7_QI,15317
|
|
45
45
|
annet/annlib/output.py,sha256=_SjJ6G6bejvnTKqNHw6xeio0FT9oO3OIkLaOC3cEga4,7569
|
|
46
46
|
annet/annlib/patching.py,sha256=GwG2lT4w-I1Ls3Eswn6SPJLBUVt2M3Ysw1fmXsWamYw,19793
|
|
@@ -124,10 +124,10 @@ annet/rulebook/texts/routeros.rul,sha256=ipfxjj0mjFef6IsUlupqx4BY_Je_OUb8u_U1019
|
|
|
124
124
|
annet_generators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
125
125
|
annet_generators/example/__init__.py,sha256=zVd8_DrXuOASrNzg2Ab94rPyvJff83L-_HppDFxnUjM,228
|
|
126
126
|
annet_generators/example/lldp.py,sha256=68CLrK7vxTQQy9XIBxtywuEdBNlIlfXGYj8_wYWs5UI,1146
|
|
127
|
-
annet-0.14.
|
|
128
|
-
annet-0.14.
|
|
129
|
-
annet-0.14.
|
|
130
|
-
annet-0.14.
|
|
131
|
-
annet-0.14.
|
|
132
|
-
annet-0.14.
|
|
133
|
-
annet-0.14.
|
|
127
|
+
annet-0.14.1.dist-info/AUTHORS,sha256=rh3w5P6gEgqmuC-bw-HB68vBCr-yIBFhVL0PG4hguLs,878
|
|
128
|
+
annet-0.14.1.dist-info/LICENSE,sha256=yPxl7dno02Pw7gAcFPIFONzx_gapwDoPXsIsh6Y7lC0,1079
|
|
129
|
+
annet-0.14.1.dist-info/METADATA,sha256=Ytr-6UkYSrc_wLkYHOza5V7iSPFGHtdteNJ6IoQzdzw,694
|
|
130
|
+
annet-0.14.1.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
|
131
|
+
annet-0.14.1.dist-info/entry_points.txt,sha256=yHimujIzR2bwNIbb--MTs_GpXiAve89Egpu2LlgTEkg,119
|
|
132
|
+
annet-0.14.1.dist-info/top_level.txt,sha256=QsoTZBsUtwp_FEcmRwuN8QITBmLOZFqjssRfKilGbP8,23
|
|
133
|
+
annet-0.14.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|