def _gluster_ok(xml_data):
 return (int(xml_data.find('opRet').text) == 0)

def _gluster_ok ( xml_data ) : return ( int ( xml_data . find ( 'opRet' ) . text ) == 0 )
extract boolean return value from glusters xml output .