Skip to content

Commit

Permalink
mark create method as internal again as it is not used outside of the…
Browse files Browse the repository at this point in the history
… service anymore
  • Loading branch information
heisner-tillman committed Feb 4, 2024
1 parent 64552ff commit 7c82a98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/galaxy/webapps/galaxy/services/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def create_fetch(
},
}
create_payload.update(files_payload)
return self.create(trans, create_payload)
return self._create(trans, create_payload)

def execute(
self,
Expand All @@ -156,9 +156,9 @@ def execute(
create_payload = payload.model_dump(exclude_unset=True)
if files:
create_payload.update(self.create_temp_file_execute(trans, files))
return self.create(trans, create_payload)
return self._create(trans, create_payload)

def create(self, trans: ProvidesHistoryContext, payload) -> ToolResponse:
def _create(self, trans: ProvidesHistoryContext, payload) -> ToolResponse:
if trans.user_is_bootstrap_admin:
raise exceptions.RealUserRequiredException("Only real users can execute tools or run jobs.")
action = payload.get("action")
Expand Down

0 comments on commit 7c82a98

Please sign in to comment.