From 977b1a21e4b81a5cbbd2568dcc2568ce1468fd52 Mon Sep 17 00:00:00 2001 From: Matt Tarkington Date: Fri, 13 May 2022 12:47:09 -0400 Subject: [PATCH] fix for issue-102 (#115) --- vmanage/api/policy_updates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmanage/api/policy_updates.py b/vmanage/api/policy_updates.py index ecc1deb..2d81dbe 100644 --- a/vmanage/api/policy_updates.py +++ b/vmanage/api/policy_updates.py @@ -148,7 +148,7 @@ def update_policy_definition(self, policy_type, name, policy_id, policy_def, new "sequences": policy_def["sequences"] } - api = "template/policy/definition/%s/%s" % (policy_type, policy_id) + api = "template/policy/definition/%s/%s" % (policy_type.lower(), policy_id) url = self.base_url + api response = HttpMethods(self.session, url).request('PUT', payload=json.dumps(payload))