def _get_xml(xml_str):
 try:
  xml_data = etree.XML(xml_str)
 except etree.XMLSyntaxError as err:
  raise SaltCloudSystemExit('opennebula returned: {0}'.format(xml_str))
 return xml_data

def _get_xml ( xml_str ) : try : xml_data = etree . XML ( xml_str ) except etree . XMLSyntaxError as err : raise SaltCloudSystemExit ( 'opennebula returned: {0}' . format ( xml_str ) ) return xml_data
intrepret the data coming from opennebula and raise if its not xml .