Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions patchwork/steps/ManageEngineAgent/ManageEngineAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class ManageEngineAgent(Step, input_class=ManageEngineAgentInputs, output_class=
def __init__(self, inputs: dict):
super().__init__(inputs)

if not inputs.get("me_access_token"):
raise ValueError("me_access_token is required")
if not inputs.get("zoho_access_token"):
raise ValueError("zoho_access_token is required")
if not inputs.get("user_prompt"):
raise ValueError("user_prompt is required")

Expand All @@ -29,7 +29,7 @@ def __init__(self, inputs: dict):
)

self.headers = {
"Authorization": f"Zoho-oauthtoken {inputs.get('me_access_token')}",
"Authorization": f"Zoho-oauthtoken {inputs.get('zoho_access_token')}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/vnd.manageengine.sdp.v3+json",
}
Expand Down
2 changes: 1 addition & 1 deletion patchwork/steps/ManageEngineAgent/typed.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class __ManageEngineAgentInputsRequired(TypedDict):
me_access_token: str
zoho_access_token: str
user_prompt: str
prompt_value: Dict[str, Any]

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "patchwork-cli"
version = "0.0.113"
version = "0.0.114"
description = ""
authors = ["patched.codes"]
license = "AGPL"
Expand Down
Loading