Skip to content

Commit 5995762

Browse files
committed
pass port value to make_url
This commit fixes an issue where the port value was not being passed to make_url() which could result in an invalid URL string.
1 parent 66452b2 commit 5995762

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

plugins/lookup/cyberark_ccp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
description:
2222
- The hostname or IP address of the CCP server
2323
type: string
24+
required: true
2425
2526
port:
2627
description:
@@ -47,6 +48,7 @@
4748
description:
4849
- Sets the unique ID of the application issuing the password request
4950
type: string
51+
required: true
5052
5153
safe:
5254
description:
@@ -148,7 +150,7 @@ def run(self, terms, variables, **kwargs):
148150

149151
verify = kwargs.get("verify")
150152

151-
url = http.make_url(host, "/AIMWebService/api/Accounts", use_tls=use_tls)
153+
url = http.make_url(host, "/AIMWebService/api/Accounts", port=port, use_tls=use_tls)
152154

153155
params = {}
154156

0 commit comments

Comments
 (0)