def _parse_proxmox_upid(node, vm_=None):
 ret = {}
 upid = node
 node = node.split(':')
 if (node[0] == 'UPID'):
  ret['node'] = str(node[1])
  ret['pid'] = str(node[2])
  ret['pstart'] = str(node[3])
  ret['starttime'] = str(node[4])
  ret['type'] = str(node[5])
  ret['vmid'] = str(node[6])
  ret['user'] = str(node[7])
  ret['upid'] = str(upid)
  if ((vm_ is not None) and ('technology' in vm_)):
   ret['technology'] = str(vm_['technology'])
 return ret

def _parse_proxmox_upid ( node , vm_ = None ) : ret = { } upid = node node = node . split ( ':' ) if ( node [ 0 ] == 'UPID' ) : ret [ 'node' ] = str ( node [ 1 ] ) ret [ 'pid' ] = str ( node [ 2 ] ) ret [ 'pstart' ] = str ( node [ 3 ] ) ret [ 'starttime' ] = str ( node [ 4 ] ) ret [ 'type' ] = str ( node [ 5 ] ) ret [ 'vmid' ] = str ( node [ 6 ] ) ret [ 'user' ] = str ( node [ 7 ] ) ret [ 'upid' ] = str ( upid ) if ( ( vm_ is not None ) and ( 'technology' in vm_ ) ) : ret [ 'technology' ] = str ( vm_ [ 'technology' ] ) return ret
upon requesting a task that runs for a longer period of time a upid is given .