Skip to content

Commit 126f2c5

Browse files
authored
Merge pull request #1485 from patched-codes/fix/ManageEngineAccessTokenRename
Use zoho_access_token for ManageEngine as it is more universal
2 parents 4598b71 + 41cbc9e commit 126f2c5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

patchwork/steps/ManageEngineAgent/ManageEngineAgent.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ class ManageEngineAgent(Step, input_class=ManageEngineAgentInputs, output_class=
1414
def __init__(self, inputs: dict):
1515
super().__init__(inputs)
1616

17-
if not inputs.get("me_access_token"):
18-
raise ValueError("me_access_token is required")
17+
if not inputs.get("zoho_access_token"):
18+
raise ValueError("zoho_access_token is required")
1919
if not inputs.get("user_prompt"):
2020
raise ValueError("user_prompt is required")
2121

@@ -29,7 +29,7 @@ def __init__(self, inputs: dict):
2929
)
3030

3131
self.headers = {
32-
"Authorization": f"Zoho-oauthtoken {inputs.get('me_access_token')}",
32+
"Authorization": f"Zoho-oauthtoken {inputs.get('zoho_access_token')}",
3333
"Content-Type": "application/x-www-form-urlencoded",
3434
"Accept": "application/vnd.manageengine.sdp.v3+json",
3535
}

patchwork/steps/ManageEngineAgent/typed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
class __ManageEngineAgentInputsRequired(TypedDict):
7-
me_access_token: str
7+
zoho_access_token: str
88
user_prompt: str
99
prompt_value: Dict[str, Any]
1010

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "patchwork-cli"
3-
version = "0.0.113"
3+
version = "0.0.114"
44
description = ""
55
authors = ["patched.codes"]
66
license = "AGPL"

0 commit comments

Comments
 (0)