def _lookup_proxmox_task(upid):
 log.debug('Getting creation status for upid: {0}'.format(upid))
 tasks = query('get', 'cluster/tasks')
 if tasks:
  for task in tasks:
   if (task['upid'] == upid):
    log.debug('Found upid task: {0}'.format(task))
    return task
 return False

def _lookup_proxmox_task ( upid ) : log . debug ( 'Getting creation status for upid: {0}' . format ( upid ) ) tasks = query ( 'get' , 'cluster/tasks' ) if tasks : for task in tasks : if ( task [ 'upid' ] == upid ) : log . debug ( 'Found upid task: {0}' . format ( task ) ) return task return False
retrieve the logs and retrieve the status for a upid .