pan-os-python 1.12.4__tar.gz → 1.12.5__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pan-os-python
3
- Version: 1.12.4
3
+ Version: 1.12.5
4
4
  Summary: Framework for interacting with Palo Alto Networks devices via API
5
5
  Home-page: https://github.com/PaloAltoNetworks/pan-os-python
6
6
  License: ISC
@@ -26,7 +26,7 @@ Documentation available at https://pan-os-python.readthedocs.io
26
26
 
27
27
  __author__ = "Palo Alto Networks"
28
28
  __email__ = "devrel@paloaltonetworks.com"
29
- __version__ = "1.12.4"
29
+ __version__ = "1.12.5"
30
30
 
31
31
 
32
32
  import logging
@@ -591,7 +591,6 @@ class FirewallCommit(object):
591
591
  self.exclude_device_and_network,
592
592
  self.exclude_shared_objects,
593
593
  self.exclude_policy_and_objects,
594
- self.force,
595
594
  ]
596
595
 
597
596
  return any(x for x in pp_list)
@@ -622,11 +621,9 @@ class FirewallCommit(object):
622
621
  ET.SubElement(partial, "shared-object").text = "excluded"
623
622
  if self.exclude_policy_and_objects:
624
623
  ET.SubElement(partial, "policy-and-objects").text = "excluded"
624
+ fe.append(partial)
625
625
 
626
- if self.force:
627
- fe = ET.SubElement(root, "force")
628
- fe.append(partial)
629
- else:
630
- root.append(partial)
626
+ if self.force:
627
+ fe = ET.SubElement(root, "force")
631
628
 
632
629
  return root
@@ -990,7 +990,6 @@ class PanoramaCommit(object):
990
990
  self.log_collector_groups,
991
991
  self.exclude_device_and_network,
992
992
  self.exclude_shared_objects,
993
- self.force,
994
993
  ]
995
994
 
996
995
  return any(x for x in pp_list)
@@ -1031,12 +1030,10 @@ class PanoramaCommit(object):
1031
1030
  ET.SubElement(partial, "device-and-network").text = "excluded"
1032
1031
  if self.exclude_shared_objects:
1033
1032
  ET.SubElement(partial, "shared-object").text = "excluded"
1033
+ root.append(partial)
1034
1034
 
1035
- if self.force:
1036
- fe = ET.SubElement(root, "force")
1037
- fe.append(partial)
1038
- else:
1039
- root.append(partial)
1035
+ if self.force:
1036
+ fe = ET.SubElement(root, "force")
1040
1037
 
1041
1038
  return root
1042
1039
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pan-os-python"
3
- version = "1.12.4"
3
+ version = "1.12.5"
4
4
  description = "Framework for interacting with Palo Alto Networks devices via API"
5
5
  authors = ["Palo Alto Networks <devrel@paloaltonetworks.com>"]
6
6
  license = "ISC"
File without changes
File without changes