Skip to content

Commit

Permalink
use default recipe only if recipe not specified (#1005)
Browse files Browse the repository at this point in the history
  • Loading branch information
jleaniz authored Feb 16, 2022
1 parent 8762a5e commit b71ef60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion turbinia/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ def create_request(
default_recipe = self.create_recipe()
request = TurbiniaRequest(
request_id=request_id, group_id=group_id, requester=requester,
recipe=default_recipe, context=context, evidence_=evidence_)
recipe=recipe if recipe else default_recipe, context=context,
evidence_=evidence_)
return request

def list_jobs(self):
Expand Down

0 comments on commit b71ef60

Please sign in to comment.