Skip to content

Commit f559047

Browse files
committed
fix: Custom URL categories 'type' param versioning
1 parent e4f02e6 commit f559047

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

panos/objects.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ class CustomUrlCategory(VersionedPanObject):
659659
name (str): The name
660660
url_value (list): Values to include in custom URL category object
661661
description (str): Description of this object
662-
type (str): The type
662+
type (str): (PAN-OS 9.0+) The type
663663
664664
"""
665665

@@ -675,7 +675,8 @@ def _setup(self):
675675

676676
params.append(VersionedParamPath("url_value", path="list", vartype="member"))
677677
params.append(VersionedParamPath("description", path="description"))
678-
params.append(VersionedParamPath("type"))
678+
params.append(VersionedParamPath("type", exclude=True))
679+
params[-1].add_profile("9.0.0", path="type")
679680

680681
self._params = tuple(params)
681682

0 commit comments

Comments
 (0)