Skip to content

Commit

Permalink
refactor token
Browse files Browse the repository at this point in the history
  • Loading branch information
nikellepetrillo committed Dec 12, 2024
1 parent 30fe656 commit 6d5239d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/firecloud_api/firecloud_api2.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def submit_job(self, submission_data_file):
return None


def upload_test_inputs(self, pipeline_name, test_inputs, branch_name, credentials: credentials):
def upload_test_inputs(self, pipeline_name, test_inputs, branch_name):
"""
Uploads test inputs to the workspace via Firecloud API.
Expand All @@ -131,7 +131,7 @@ def upload_test_inputs(self, pipeline_name, test_inputs, branch_name, credential
# properly encode the space in WARP Tests as %20 using from urllib.parse import quote
url = f"{self.base_url}/workspaces/{self.namespace}/{quote(self.workspace_name)}/method_configs/{self.namespace}/{pipeline_name}"

token = get_user_token(credentials)
token = get_user_token(self.delegated_creds)
headers = build_auth_headers(token)

# get the current method configuration
Expand Down

0 comments on commit 6d5239d

Please sign in to comment.