@@ -178,7 +178,7 @@ def get_service_info(self):
178
178
:return: The body of the get result as a dictionary.
179
179
"""
180
180
postresult = requests .get ("%s://%s/ga4gh/wes/v1/service-info" % (self .proto , self .host ),
181
- headers = { "Authorization" : self .auth } )
181
+ headers = self .auth )
182
182
return wes_reponse (postresult )
183
183
184
184
def list_runs (self ):
@@ -194,7 +194,7 @@ def list_runs(self):
194
194
:return: The body of the get result as a dictionary.
195
195
"""
196
196
postresult = requests .get ("%s://%s/ga4gh/wes/v1/runs" % (self .proto , self .host ),
197
- headers = { "Authorization" : self .auth } )
197
+ headers = self .auth )
198
198
return wes_reponse (postresult )
199
199
200
200
def run (self , wf , jsonyaml , attachments ):
@@ -214,7 +214,7 @@ def run(self, wf, jsonyaml, attachments):
214
214
parts = build_wes_request (wf , jsonyaml , attachments )
215
215
postresult = requests .post ("%s://%s/ga4gh/wes/v1/runs" % (self .proto , self .host ),
216
216
files = parts ,
217
- headers = { "Authorization" : self .auth } )
217
+ headers = self .auth )
218
218
return wes_reponse (postresult )
219
219
220
220
def cancel (self , run_id ):
@@ -228,7 +228,7 @@ def cancel(self, run_id):
228
228
:return: The body of the delete result as a dictionary.
229
229
"""
230
230
postresult = requests .delete ("%s://%s/ga4gh/wes/v1/runs/%s" % (self .proto , self .host , run_id ),
231
- headers = { "Authorization" : self .auth } )
231
+ headers = self .auth )
232
232
return wes_reponse (postresult )
233
233
234
234
def get_run_log (self , run_id ):
@@ -242,7 +242,7 @@ def get_run_log(self, run_id):
242
242
:return: The body of the get result as a dictionary.
243
243
"""
244
244
postresult = requests .get ("%s://%s/ga4gh/wes/v1/runs/%s" % (self .proto , self .host , run_id ),
245
- headers = { "Authorization" : self .auth } )
245
+ headers = self .auth )
246
246
return wes_reponse (postresult )
247
247
248
248
def get_run_status (self , run_id ):
@@ -256,5 +256,5 @@ def get_run_status(self, run_id):
256
256
:return: The body of the get result as a dictionary.
257
257
"""
258
258
postresult = requests .get ("%s://%s/ga4gh/wes/v1/runs/%s/status" % (self .proto , self .host , run_id ),
259
- headers = { "Authorization" : self .auth } )
259
+ headers = self .auth )
260
260
return wes_reponse (postresult )
0 commit comments