code: def _find_vm(name, data, quiet=False):
      '''
      Scan the query data for the named VM
      '''
      for hv_ in data:
          # Check if data is a dict, and not '"virt.full_info" is not available.'
          if not isinstance(data[hv_], dict):
              continue
          if name in data[hv_].get('vm_info', {}):
              ret = {hv_: {name: data[hv_]['vm_info'][name]}}
              if not quiet:
                  __jid_event__.fire_event({'data': ret, 'outputter': 'nested'}, 'progress')
              return ret
      return {f _find_vm(name, data, quiet=False):
      '''
      Scan the query data for the named VM
      '''
      for hv_ in data:
          # Check if data is a dict, and not '"virt.full_info" is not available.'
          if not isinstance(data[hv_], dict):
              continue
          if name in data[hv_].get('vm_info', {}):
              ret = {hv_: {name: data[hv_]['vm_info'][name]}}
              if not quiet:
                  __jid_event__.fire_event({'data': ret, 'outputter': 'nested'}, 'progress')
              return ret
      return {}
docs: Scan the query data for the named VM