def param2id(object_id):
 if ('-' in object_id):
  return ec2utils.ec2_vol_id_to_uuid(object_id)
 else:
  return object_id

def param2id ( object_id ) : if ( '-' in object_id ) : return ec2utils . ec2_vol_id_to_uuid ( object_id ) else : return object_id
helper function to convert various volume id types to internal id .