Skip to content

Commit

Permalink
Update request message to indicate function name
Browse files Browse the repository at this point in the history
  • Loading branch information
abyesilyurt committed May 21, 2024
1 parent c831d5f commit 4ee91e9
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 4ee91e9

Please sign in to comment.