Skip to content

Commit

Permalink
Merge pull request #8841 from OpenMined/aziz/request_msg
Browse files Browse the repository at this point in the history
Update request message to indicate function name
  • Loading branch information
abyesilyurt authored May 22, 2024
2 parents 55036c8 + aa700c4 commit 8a28ad6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/syft/src/syft/service/request/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,11 +570,14 @@ def approve(
)
if message and metadata and metadata.show_warnings and not disable_warnings:
prompt_warning_message(message=message, confirm=True)
msg = (
"Approving request ",
f"on change {self.code.service_func_name} " if is_code_request else "",
f"for domain {api.node_name}",
)

print(f"Approving request for domain {api.node_name}")
print("".join(msg))
res = api.services.request.apply(self.id, **kwargs)
# if isinstance(res, SyftSuccess):

return res

def deny(self, reason: str) -> SyftSuccess | SyftError:
Expand Down

0 comments on commit 8a28ad6

Please sign in to comment.