Skip to content

Commit

Permalink
fix: Custom URL categories 'type' param versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
shinmog committed Jul 30, 2021
1 parent e4f02e6 commit f559047
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions panos/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ class CustomUrlCategory(VersionedPanObject):
name (str): The name
url_value (list): Values to include in custom URL category object
description (str): Description of this object
type (str): The type
type (str): (PAN-OS 9.0+) The type
"""

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

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

self._params = tuple(params)

Expand Down

0 comments on commit f559047

Please sign in to comment.