def get_dynamic_provider_data(self, provider):
        # Get provider details for RHEV-M or VSphere
        # First try to interpret this as an ad-hoc/dynamic provider def
        # If this fails, try to find it in one or the other of the config files
        # If this all fails return None
        # We use this in the builders as well so I have made it "public"

        try:
            xml_et = fromstring(provider)
            return xml_et.attrib
        except Exception as e:
            self.log.debug('Testing provider for XML: %s' % e)
            pass

        try:
            jload = json.loads(provider)
            return jload
        except __HOLE__ as e:
            self.log.debug('Testing provider for JSON: %s' % e)
            pass

        return None
dataset/ETHPy150Open redhat-imaging/imagefactory/imagefactory_plugins/RHEVM/RHEVM.py/RHEVM.get_dynamic_provider_data