def facts
      logger.debug "get complete data of all VMs in all datacenters: begin"
      result = Hash[vm_mos_to_h(@vcenter.vms).map do |h|
        [h['name'], Hash[h.map { |k, v| [k.tr('.', '_'), v] }]]
      end]
      logger.debug "get complete data of all VMs in all datacenters: end"
      result
    end
def facts
      logger.debug "get complete data of all VMs in all datacenters: begin"
      result = Hash[vm_mos_to_h(@vcenter.vms).map do |h|
        [h['name'], Hash[h.map { |k, v| [k.tr('.', '_'), v] }]]
      end]
      logger.debug "get complete data of all VMs in all datacenters: end"
      result
    end
get all vms and their facts as hash with vm.name as key