       {:error, %Ecto.Changeset{}}
 
   """
-  def update_known_host(%KnownHost{} = known_host, attrs) do
+  def update_known_host(%KnownHost{} = known_host) do
     known_host
-    |> KnownHost.changeset(attrs)
+    |> KnownHost.changeset(%{})
+    |> KnownHost.populate()
     |> Repo.update()
   end
 

  end

  @doc """
  Gets a single known_host.

  Raises `Ecto.NoResultsError` if the Known host does not exist.



  """
  def get_known_host!(id), do: Repo.get!(KnownHost, id)

  @doc """
  Gets a single known_host by host.

  Raises `Ecto.NoResultsError` if the Known host does not exist.

  ## Examples

      iex> get_known_host_by_host!("github.com")
      %KnownHost{}

      iex> get_known_host_by_host!("example.com")
      ** (Ecto.NoResultsError)

  """
  def get_known_host_by_host!(host), do: Repo.get_by!(KnownHost, host: host)

  @doc """
  Creates a known_host.
