@@ -108,8 +108,7 @@ def load_from_operation(op_name, msc_url, msc_auth_password, username, password)
108108 msc_auth = ("mscolab" , msc_auth_password )
109109 session .auth = msc_auth
110110 session .headers .update ({'x-test' : 'true' })
111- # ToDp fix config_loader it gets a list of two times the entry
112- response = session .get (urljoin (msc_url , 'status' ), timeout = tuple (config_loader (dataset = "MSCOLAB_timeout" ))[0 ])
111+ response = session .get (urljoin (msc_url , 'status' ), timeout = tuple (config_loader (dataset = "MSCOLAB_timeout" )))
113112 session .close ()
114113 if response .status_code == 401 :
115114 logging .error ("Error" , 'Server authentication data were incorrect.' )
@@ -119,8 +118,7 @@ def load_from_operation(op_name, msc_url, msc_auth_password, username, password)
119118 session .headers .update ({'x-test' : 'true' })
120119 url = urljoin (msc_url , "token" )
121120 try :
122- # ToDp fix config_loader it gets a list of two times the entry
123- response = session .post (url , data = data , timeout = tuple (config_loader (dataset = "MSCOLAB_timeout" ))[0 ])
121+ response = session .post (url , data = data , timeout = tuple (config_loader (dataset = "MSCOLAB_timeout" )))
124122 response .raise_for_status ()
125123 except requests .exceptions .RequestException as ex :
126124 logging .error ("unexpected error: %s %s %s" , type (ex ), url , ex )
0 commit comments