Skip to content

Commit

Permalink
[pan-os-create-tag] without comment argument (#28263)
Browse files Browse the repository at this point in the history
* revert the if for comment

* fixed test
  • Loading branch information
michal-dagan committed Jul 19, 2023
1 parent a7c190f commit dc9dc7e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Packs/PAN-OS/Integrations/Panorama/Panorama.py
Original file line number Diff line number Diff line change
Expand Up @@ -13208,8 +13208,7 @@ def build_tag_element(disable_override: bool, comment: str, new_name: str = None
if DEVICE_GROUP:
if api_disable_override := 'yes' if disable_override else 'no':
element = f'<disable-override>{api_disable_override}</disable-override>'
if comment:
element += f'<comments>{comment}</comments>'
element += f'<comments>{comment}</comments>'
if color:
element += f'<color>{color}</color>'
if new_name:
Expand Down
4 changes: 2 additions & 2 deletions Packs/PAN-OS/Integrations/Panorama/Panorama_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7078,13 +7078,13 @@ def test_pan_os_delete_tag_command(mocker, is_shared):
"device_group",
"",
{"disable_override": True, "comment": ""},
"<disable-override>yes</disable-override>"
"<disable-override>yes</disable-override><comments></comments>"
),
(
"",
"vsys1",
{"disable_override": True, "comment": ""},
""
"<comments></comments>"
),
]
)
Expand Down
6 changes: 6 additions & 0 deletions Packs/PAN-OS/ReleaseNotes/1_17_15.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### Palo Alto Networks PAN-OS

- Fixed an issue where the ***pan-os-create-tag*** command didn't work without the *comment* argument for Firewall instances.
2 changes: 1 addition & 1 deletion Packs/PAN-OS/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "PAN-OS by Palo Alto Networks",
"description": "Manage Palo Alto Networks Firewall and Panorama. Use this pack to manage Prisma Access through Panorama. For more information see Panorama documentation.",
"support": "xsoar",
"currentVersion": "1.17.14",
"currentVersion": "1.17.15",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit dc9dc7e

Please sign in to comment.