From f55904751d120668ccc8be3ac66742bd3fefc36a Mon Sep 17 00:00:00 2001 From: Garfield Freeman Date: Fri, 30 Jul 2021 16:42:42 -0700 Subject: [PATCH] fix: Custom URL categories 'type' param versioning --- panos/objects.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/panos/objects.py b/panos/objects.py index 03f435a2..dd7a4425 100644 --- a/panos/objects.py +++ b/panos/objects.py @@ -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 """ @@ -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)