Skip to content

Commit

Permalink
Merge branch 'dev' into syft_error_improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-milea authored May 22, 2024
2 parents d0eddb4 + 8a28ad6 commit d345d84
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 d345d84

Please sign in to comment.