Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
if arg in kwargs:
arg_map[arg] = kwargs[arg]
if arg in arg_map:
+ # This is not a type error. We are using the index here.
arg_map[idx] = arg_map[arg]
return arg_map
self.status = thread.res_task['exception']['status']
else:
self.status = 500
- self.body = json.dumps(thread.rest_task['exception'])
+ self.body = json.dumps(thread.res_task['exception'])
return
def _task_post(self, url, data=None, timeout=60):
# pylint: disable=broad-except
def run(self):
- t0 = 0
- t1 = 0
+ t0 = 0.0
+ t1 = 0.0
try:
t0 = time.time()
logger.debug("VC: starting execution of %s", self.fn)